XPath query for empty namespace xmlns="" -


What XPath do I use to query the information node in the XML below? I have tried various expressions in XMLSpy but nothing works.

  & lt; Root xmlns = "tempuri.org" xmlns: p = "http://nonamespace.org/std/Name/2006-10-18/" xmlns: xsi = "http: //www.w3.org/2001/XMLSchema -instance "& gt; & Lt; Item xmlns = "" & gt; & Lt; Info & gt; Blah blah & lt; / Info & gt; & Lt; Date & gt; 2009-07-27 00: 00: 00 & lt; / Date & gt; & Lt; / Item & gt;  

You can do this

< Pre> & lt; Xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns: a = "tempuri.org" & gt; & Lt; Xsl: template match = "/" & gt; & Lt; Xsl: Select the value = "a: root / item / info" /> & Lt; / XSL: Templates & gt;

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -