M
Mario Splivalo
Here is my XML document:
<a>
<b>1</b>
<b>2</b>
<b></b>
<b>3</b>
</a>
When I execute this XPath query against it: /a/b/text()
I get only 1, 2 and 3:
mario@mike:~$ echo "<a><b>1</b><b>2</b><b></b><b>3</b></a>" | xpath -e '/a/b/@id'
Found 3 nodes in stdin:
-- NODE --
1
-- NODE --
2
-- NODE --
3
mario@mike:~$
Is there a way to extract that NULL-valued node?
Mike
<a>
<b>1</b>
<b>2</b>
<b></b>
<b>3</b>
</a>
When I execute this XPath query against it: /a/b/text()
I get only 1, 2 and 3:
mario@mike:~$ echo "<a><b>1</b><b>2</b><b></b><b>3</b></a>" | xpath -e '/a/b/@id'
Found 3 nodes in stdin:
-- NODE --
1
-- NODE --
2
-- NODE --
3
mario@mike:~$
Is there a way to extract that NULL-valued node?
Mike