Hi all!
I seem to have a small problem with this function of simple_xml... Does it apply only in one file each time? I have a big file that consists of small XML files, and when I try to load it using simplexml_load_file, it returns false, because PHP sees the <?xml version....> tag more than once...
Can I do something with this problem?
simplexml_load_file
Page 1 of 11 Replies - 2244 Views - Last Post: 20 March 2006 - 04:03 PM
Replies To: simplexml_load_file
#2
Re: simplexml_load_file
Posted 20 March 2006 - 04:03 PM
Sounds like you will need to open the file some other way ( file(), file_get_contents(), etc ) do some processing and then use simplexml_load_string() once you have the data you want.
Or open the file, parse the data, and write new files for each <?xml version...> section.
Or open the file, parse the data, and write new files for each <?xml version...> section.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|