Hey guys,
I've noticed that if you have an XML snippet structured like this (I'm using square brackets instead in case it messes up and HTML readers):
[someNode]
[someChild]Blah[/someChild]
[someChild]Blah 2[/someChild]
[/someNode]
And then proceed to call "previous_sibling()" on the second 'someChild' node, it actually counts the WHITESPACE as it's previous sibling, not the first someChild node.
If the structure is like this:
[someNode]
[someChild]Blah[/someChild][someChild]Blah2[/someChild]
[/someNode]
then the previous_sibling() returns the previous someChild node as it should. It seems that PHP handles the whitespace as a node on the same level as the someChild nodes.
Anyone know how to allow for the whitespace, but not have it be counted as a sibling node of the actual elements?