Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: Can I get children of current node by xpath

$
0
0

APP source edit mode = APP Javascript FOM

 

The way to access the current node during formatting is: formatting.currentXMLNode

 

Once you have an XML Node object you can run XPath against it: myNode.evaluateXPath("something")

 

To access child elements in XPath: child::*

 

So putting it all together: formatting.currentXMLNode.evaluateXPath("child::*")


Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>