OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Problem with parsing remote xml files
This page's ID:
27694
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
yeah.. you're not concatinating the data you read, placing half of an xml string probalby right in the middle of <tags> in there... try tho following (won't work for huge xml files... but anything less < 2mb should be fine) [code] $file = fopen ($xml_file, "rb"); $xml = ''; while ($buffer = fread ($file, 4096)) { $xml .= $buffer; } if (!xml_parse ($xp, $xml, feof ($file))) { die("XML parser error: " . xml_error_string (xml_get_error_code ($xp))); } [/code] in your inner section...
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail