假使有一段a.xml文件: <root> <e1>xxx</e1> <e2>xxx</e2> <a1>xxx</a1> <a2>xxx</a2> </root>
如果想把<e2>和<a2>两个tag通过XQuery同时查询出来,应该怎么写? doc('a.xml')/root/ ...... ----------------------------------- if that's all you want then: root/node()[contains(name(),'2')]
normal form will be: root/node()[name()='a2' or name()='e2']
I tried http://www.mizar.dk/XPath/Default.aspx.. ---------------------------------------
|