meomike2000 Posted February 3, 2010 Share Posted February 3, 2010 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..... Quote Link to comment https://forums.phpfreaks.com/topic/190761-working-with-xml-herehelp-please/ Share on other sites More sharing options...
PravinS Posted February 3, 2010 Share Posted February 3, 2010 You can use strip_tags () function, if you want to remove HTML tags from doc. Quote Link to comment https://forums.phpfreaks.com/topic/190761-working-with-xml-herehelp-please/#findComment-1005973 Share on other sites More sharing options...
meomike2000 Posted February 4, 2010 Author Share Posted February 4, 2010 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..... Quote Link to comment https://forums.phpfreaks.com/topic/190761-working-with-xml-herehelp-please/#findComment-1006471 Share on other sites More sharing options...
meomike2000 Posted February 4, 2010 Author Share Posted February 4, 2010 here is a link if it will help http://www.meo2000.net/web/updateFriendsOrder.php Quote Link to comment https://forums.phpfreaks.com/topic/190761-working-with-xml-herehelp-please/#findComment-1006512 Share on other sites More sharing options...
meomike2000 Posted February 4, 2010 Author Share Posted February 4, 2010 here is a link to same xml without the parser... http://www.meo2000.net/web/updatexmltest.php Quote Link to comment https://forums.phpfreaks.com/topic/190761-working-with-xml-herehelp-please/#findComment-1006576 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.