I'm creating an app that works with ServiceNow (custom reporting tool)
It's configured to use demo12 and XML service described here.
When i made this request
in response XML i see not only <incident>
nodes, but also <u_zprototype_incidents>
XPath to get node names is
distinct-values(/xml/*/name(.))
and result is (user-friendly formatted)
<XdmValue>
<XdmAtomicValue>u_zprototype_incidents</XdmAtomicValue>
<XdmAtomicValue>incident</XdmAtomicValue>
</XdmValue>
not sure, if this is how it should be displayed.
Is there any other way (extra URI param, etc.) to get valid XML (only <incident>
nodes) ?
I know that i can use /xml/*[contains(name(.),'incident')][sys_id='my GUID']
to get needed nodes. but i think it consume more CPU time than just /xml/incident[sys_id='my GUID']
.
Any ideas?