DOMXML
Posted: Wed Oct 02, 2002 12:45 am
OK... I'm trying to learn how to use DOM.
Unfortunately... it's just NOT getting through. I've read a few tutorials... but they're old and well, I've gotten lost.
What I need is either a bang up-to-date tutorial, OR someone to supply with some PHP code which I can pick apart. I need to parse XML to get what attributes exist in a node, the attribute values, and to like... "select" certain nodes based on an attributes value. All my XML is like this:
rather than:
- Davey
Unfortunately... it's just NOT getting through. I've read a few tutorials... but they're old and well, I've gotten lost.
What I need is either a bang up-to-date tutorial, OR someone to supply with some PHP code which I can pick apart. I need to parse XML to get what attributes exist in a node, the attribute values, and to like... "select" certain nodes based on an attributes value. All my XML is like this:
Code: Select all
<data attr1="val1" attr2="val2 />Code: Select all
<date>
<attr1>val1</attr1>
<attr2>val2</attr2>
</date>