Using XPath, how to get the required fields? my bundle XML is as below.
<tcm:Metadata>
<Metadata xmlns="http://www.mycompany.com/tridion/schema/publish_bundle_schema">
<my_workflow_metadata>
<workflow_release xlink:href="tcm:84-3941-1024" xlink:title="Non-Release" xmlns:xlink="http://www.w3.org/1999/xlink">Non-Release</workflow_release>
<approval_tracking_id>TGT-xxxx</approval_tracking_id>
</my_workflow_metadata>
</Metadata>
- I am able to fetch other values as below ex : var bundleName = $xml.getInnerText(xmlDoc, "/tcm:*/tcm:Data/tcm:Title");
but, for metadata I am facing issues. var workflow_metadata = $xml.selectSingleNode(xmlDoc, "/tcm:*/tcm:Data/tcm:Metadata"); is giving me all the metadata values. I would like to know the correct approach.