Hi all,
im new, both to PHP, and to this forum, and this looked like the best place to go for advice.
i've been learning PHP via lynda.com training videos, and it's been going well. im working on a project in which i need to parse some XML data into HTML for use on a dynamic site. I have set up all the PHP parsers, startHandler, endHandler, etc., set up the parser, the whole bit, and it works like a charm. The only problem I'm having is that I don't know how to get out the data within the tags. i can get things like the attributes within the tag, but I don't know how to get the data between the tags.
For instance:
heres some example code:
<xml>
<elementName type="name">This is inside.</elementName>
</xml>
I can get the type for instance, but I can't get the text "This is inside". Does anyone know what variable this gets assigned to , or how I can assign it to a variable to use it.
Thanks,
zbirdboy