<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting a child node with their property Name in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460582#M132834</link>
    <description>&lt;P&gt;&lt;LI-USER uid="17475073"&gt;&lt;/LI-USER&gt;&amp;nbsp;can you please share sample node structure how it's getting stored in crx ?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 13:48:51 GMT</pubDate>
    <dc:creator>Siva_Sogalapalli</dc:creator>
    <dc:date>2022-07-12T13:48:51Z</dc:date>
    <item>
      <title>Getting a child node with their property Name</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460558#M132828</link>
      <description>&lt;P&gt;I have a container then layout then config then column then list I want to get those list property but node name changing again and again How can I extract the List name and there properties values without using name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:23:31 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460558#M132828</guid>
      <dc:creator>rohankalra</dc:creator>
      <dc:date>2022-07-12T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a child node with their property Name</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460582#M132834</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17475073"&gt;&lt;/LI-USER&gt;&amp;nbsp;can you please share sample node structure how it's getting stored in crx ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:48:51 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460582#M132834</guid>
      <dc:creator>Siva_Sogalapalli</dc:creator>
      <dc:date>2022-07-12T13:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a child node with their property Name</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460598#M132838</link>
      <description>&lt;P&gt;You can update your logic to use regex for checking the node name. For example it will always be in these format&lt;/P&gt;&lt;P&gt;list / list_NNNNNNNN_ / list_NNNNNNNN&lt;/P&gt;&lt;P&gt;Else you can go ahead with search based approach. You can write a query to fetch all list components based on &lt;SPAN&gt;sling:resourceType property.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 14:18:48 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460598#M132838</guid>
      <dc:creator>sachinarora</dc:creator>
      <dc:date>2022-07-12T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a child node with their property Name</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460680#M132856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17475073"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;PRE&gt;Resource childResource = resourceResolver.getResource(child.getPath());
Node childNode = childResource.adaptTo(Node.class);
Node jcrContent = childNode.getNode("jcr:content");
NodeIterator childrenNodes = jcrContent.getNodes();

while(childrenNodes.hasNext()){
    Node next = childrenNodes.nextNode();
    String resourceType = next.getProperty("sling:resourceType").getString();
    if(resourceType.equals("your/custom/resource/property/path")) {&lt;BR /&gt;&lt;SPAN&gt;        properties = childResource.adaptTo(ValueMap.class);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;        String propertyOne = properties.get("propertyOne", (String) null);&lt;/SPAN&gt;&lt;BR /&gt;    }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jul 2022 01:53:28 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/getting-a-child-node-with-their-property-name/m-p/460680#M132856</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-07-13T01:53:28Z</dc:date>
    </item>
  </channel>
</rss>

