From: John S. <jo...@sn...> - 2010-09-29 10:16:01
|
On 28/09/10 18:40, Mike Li wrote: > Hello, > > I have a newbie question on XQilla/Xerces: > say I have a simple xml string to parse: <?xml > version="1.0"?><Myroot><Data1>123</Data1>... ...</Myroot> > > how do I get the root node name -- i.e. Myroot in the above case? some > sample codes will be appreciated An XPath expression like this should do it: /*/node-name() > BTW, where can I find more *detailed* sample codes of using XQilla? The xqilla/src/samples/ directory: http://xqilla.hg.sourceforge.net/hgweb/xqilla/xqilla/file/33b91804cb3b/src/samples John |