local-name() call?<?xml version="1.0" encoding="UTF-8"?>
<listallmycontainersresult xmlns="http://blah.blah.blah/">
<containers>
<container>
<name>abcd-1234</name>
<creationdate>2008-11-08T22:41:12.000Z</creationdate>
</container>
...
</containers>
</listallmycontainersresult>//container//*[local-name()='container']xmlns attribute of listallmycontainersresult to create this alias?xmlXPathRegisterNs(xpathCtx, prefix, href) to add an alias to a namespace when I perform the query.You are not logged in, either login or create an account to post comments
xmlns="..."attribute in your document. You need an explicit prefix on all the namespaced elements in your XPath expression to workaround this.For instance, add
xmlns:blah="http://blah.blah.blah/"to your doc and then change your XPath to//blah:container.posted by Khalad at 11:32 PM on September 5