meomike2000 Posted September 10, 2009 Share Posted September 10, 2009 can somebody please give me an example parser for this xml document, or lead me to a similar example that i can learn off of. thanks in advance mike..... header("Content-Type: text/xml") <post> <type>'.$type.'</type> <commentid>'.$commentid.'</commentid> <private>'.$privacy.'</private> <name>'.$name.'</name> <comment>'.$comment.'</comment> <friendid>'.$friendid.'</friendid> <senderpic>'.$senderpic.'</senderpic> <toppic>'.$toppic.'</toppic> <mess>'.$mess.'</mess> <date>'.$date.'</date> </post> i do not understand how to create the parser, and i can not find a good example Link to comment https://forums.phpfreaks.com/topic/173743-solved-need-help-parsing-xml-document-please/ Share on other sites More sharing options...
RichardRotterdam Posted September 10, 2009 Share Posted September 10, 2009 It looks like half baked PHP and XML is that really the XML you want to parse? And do you want to do this using Ajax? Link to comment https://forums.phpfreaks.com/topic/173743-solved-need-help-parsing-xml-document-please/#findComment-915950 Share on other sites More sharing options...
meomike2000 Posted September 10, 2009 Author Share Posted September 10, 2009 yes, this is what is returned from a php file from an ajax get request....... Link to comment https://forums.phpfreaks.com/topic/173743-solved-need-help-parsing-xml-document-please/#findComment-916123 Share on other sites More sharing options...
meomike2000 Posted September 17, 2009 Author Share Posted September 17, 2009 i figured it out from help at w3 schools...... Link to comment https://forums.phpfreaks.com/topic/173743-solved-need-help-parsing-xml-document-please/#findComment-919879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.