Some useful XPath tips

XML

XPath is used to search in XML, here are some very usefull query tips

Use this to search without sepcifying a namespace:


//*['elementName'=local-name()]/*['subElement'=local-name()]

Use this to search for an element that has an attribute


//element[@attrName]

Post a Comment

Previous Post Next Post