joeyjgarcia Posted June 19, 2006 Share Posted June 19, 2006 I must be missing something but I've been looking at PHP XML tutorials and manuals for hours and I just don't see how they get the data from between the tags. Every tutorial shows how to capture the tag name and the attribute values but none are showing how to capture the data between tags, e.g., <customer>John Doe</customer>; how do I get to "John Doe"? Quote Link to comment https://forums.phpfreaks.com/topic/12345-php-xml-parsing/ Share on other sites More sharing options...
zq29 Posted June 19, 2006 Share Posted June 19, 2006 When parsing XML, I personally have used the xml_parse_into_struct() function. Look it up in the manual, there are a couple of examples of how you can use it. Quote Link to comment https://forums.phpfreaks.com/topic/12345-php-xml-parsing/#findComment-47251 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.