Forum Moderators: coopster

Message Too Old, No Replies

Problem with simplexml_load_file

         

ktsirig

12:23 am on Mar 19, 2006 (gmt 0)

10+ Year Member



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?

coopster

1:34 pm on Mar 19, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member




simplexml_load_file() [php.net]
This function will convert the well-formed XML document ...

Probably your best bet is to store the files separately.