Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello Arbx Experts!
I have an acl script that uses an XML location path to get an objectID in editor.
This works no problem with regular XML trees. But with XML containing namespaces it does work the same.
The first full NS local name path shown below does not return the oid.
But the second path example changed and simplified through a regex does.
So my question:
Why does this first full explicit path type not work in Editor?
(it is a valid XML path as produced by get-path() in APP)
If anyone has an idea it would be good to understand why this is the case.
Many thanks
Chris
FULL PATH NOT WORKING
xpath_nodeset($nodeSet,"/node()[local-name()='BGTDOC' and namespace-uri()='http://www.senato.it/static/xml/def/1.0/bgt.html'][1]/node()[local-name()='dl:DDLMESS' and namespace-uri()='http://www.senato.it/static/xml/def/1.0/ddl.html'][1]/node()[local-name()='a:Articolato' and namespace-uri()='http://www.senato.it/static/xml/def/1.0/articolato.html'][1]/node()[local-name()='a:Articolo' and namespace-uri()='http://www.senato.it/static/xml/def/1.0/articolato.html'][1]/node()[local-name()='a:Num' and namespace-uri()='http://www.senato.it/static/xml/def/1.0/articolato.html'][1]/text()[1]");
MODIFIED PATH THAT IS WORKING
xpath_nodeset($nodeSet,"/*[local-name()='BGTDOC']/*[local-name()='DDLMESS']/*[local-name()='Articolato']/*[local-name()='Articolo']/*[local-name()='Num']/text()");
