truongpm Posted August 21, 2009 Share Posted August 21, 2009 I have some data in XML sended via HTTP POST. So in server side, how could i parse it to store in to database. ex: <doc> <id=""> <name=""> ... </doc> I had spend for long time to find the solution on web but it so wide and dificult. Please help me! Link to comment https://forums.phpfreaks.com/topic/171326-how-to-parse-xml-sended-via-http-post/ Share on other sites More sharing options...
Daniel0 Posted August 21, 2009 Share Posted August 21, 2009 You can use DOM or SimpleXML to parse it. Link to comment https://forums.phpfreaks.com/topic/171326-how-to-parse-xml-sended-via-http-post/#findComment-903518 Share on other sites More sharing options...
truongpm Posted August 21, 2009 Author Share Posted August 21, 2009 You can use DOM or SimpleXML to parse it. It esealy to parse if i hepl a xml file. But my problem is i get a xml data via POST method. ex Some mobile app send to the server side data in xml format via POST method. I get this variable by $xmlstr=JRequest::getVar("thetext"); under Joomla framework. And i don't know how to parse it data. Sorry about my english skill. Please help me! Link to comment https://forums.phpfreaks.com/topic/171326-how-to-parse-xml-sended-via-http-post/#findComment-903551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.