Jump to content

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.....

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.