Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Xpath query to return "NULL" values? Xpath query to return "NULL" values?To: NULL Date: 6/5/2009 11:11:00 AM 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 -- "I can do it quick. I can do it cheap. I can do it well. Pick any two." Mario Splivalo majk@f... | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
