Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
I'm trying to get children of current node by using xpath in APP source edit mode!
Can it be done in this way?
Solved! Go to Solution.
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::*")
I'm not sure what APP source edit mode is, but there is an acl function: oid_xpath_nodeset_str(srcOid, xpath)
I use this in conjunction with a helper acl method to make calls from java.
See the archive at: aclxpathhelperfunction - www2
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::*")
Hey dr bd,
Did Gareth's reply help you out?
Let us know if you got it resolved, or need more assistance. Thanks!