So I have a XML structure like this one:
<layout>
<pattern> ... </pattern>
<row> ... </row>
</layout>
How can I select the first node of /layout/ by its index, using xpath?
W3C says:
There is a problem with this. The example above shows different results in IE and other browsers.
IE5 and later has implemented that [0] should be the first node, but according to the W3C standard it should have been [1]!!
A Workaround!: To solve the [0] and [1] problem in IE5+, you can set the SelectionLanguage to XPath.
But that's client-specific. And PHP manual isn't very clear about this either.
Any suggestions?