I have an Xpath statement where I am going after two paths:
<cfset Parent = #XmlSearch(ContainersXml, "/cms_containers/container[@menu='yes']|/cms_containers/container[@menu='yes']/content[@landing='yes']"
# > <!--- Get Parent--->
From this XPath I want to pull the info only from the second path (I ahve what I need from the first one):
/cms_containers/container[@menu='yes']/content[@landing='yes']
I need to get at the first content container where the attribute landing = yes, however I need to display the attribute for label.
The XML partially looks like this:
<cms_containers default="4F1F609F-C09F-0662-D2E8527FEE4037C4">
<container ID="A4549BC1-C09F-0662-D22A8D038FE354E2" menu="no" name="Home Page">
<!-- There are 5 Children -->
<content ID="305" label="qwerty-305" ctcd="WEB" live="yes" archived="no" landing="yes">qwerty</content>
</container>
Any thoughts?
<cfset Parent = #XmlSearch(ContainersXml, "/cms_containers/container[@menu='yes']|/cms_containers/container[@menu='yes']/content[@landing='yes']"
From this XPath I want to pull the info only from the second path (I ahve what I need from the first one):
/cms_containers/container[@menu='yes']/content[@landing='yes']
I need to get at the first content container where the attribute landing = yes, however I need to display the attribute for label.
The XML partially looks like this:
<cms_containers default="4F1F609F-C09F-0662-D2E8527FEE4037C4">
<container ID="A4549BC1-C09F-0662-D22A8D038FE354E2" menu="no" name="Home Page">
<!-- There are 5 Children -->
<content ID="305" label="qwerty-305" ctcd="WEB" live="yes" archived="no" landing="yes">qwerty</content>
</container>
Any thoughts?