Jump to content

working with xml here....help please....


meomike2000

Recommended Posts

i have created a test script that generates xml, then i try to parse it farther in the script,

the purpose is to learn to parse xml in php...

 

i get an error that says there is junk at the end of my xml document. it is a <br /> tag.

but i did not include this tag in the xml doc. so how do i remove this junk....

 

thanks in advance mike.....

Link to comment
https://forums.phpfreaks.com/topic/190761-working-with-xml-herehelp-please/
Share on other sites

strip_tags() didnt seem to work, the <br /> or junk is still there.

 

2 question:

1 why is it there, i didnt add it to the xml anywhere,

2 how do i get rid of it.......

 

also if dont try to parse it, it just prints the xml out on the screen with a warning that the xml has no style, dont need style, and this does not show the <br /> tag.

 

the tag is there only when i try to parse it......

 

help, never parsed xml with php, only js.....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.