[Resolved] Using the DOM XML parser...

hello, i've got a bit of a question that i've been trying to solve for the last few days. firstly I'm dealing w/ XML that looks like so:

<Inbound>
<Entry Number="1"><cnode1>data</cnode1><cnode2>data</cnode2></Entry>
...
</Inbound>

There are thousands of entry nodes, and I need to be able to filter according to the number attrubute. only grabbing the first hundred or so of the entries.

All the filtering I've been doing has been with xpath->query and that seems like the way to go, i'm just unsure as to what the expression needs to be to be.

here's the php.net page for the function.
<!-- m --><a class="postlink" href="http://www.php.net/manual/en/function.dom-domxpath-query.php">http://www.php.net/manual/en/function.d ... -query.php</a><!-- m -->

thanks in advance for your helpAnd here's the page for XPath (<!-- m --><a class="postlink" href="http://www.w3.org/TR/XPath">http://www.w3.org/TR/XPath</a><!-- m -->) itself. Looks like you're after //Entry[number(@Number)<100]Thanks, i'm grateful.
 
Back
Top