hi list,<br><br>I currently use xmlcontent items defined by my own xsd's. Its a complex structure of nested contents. I access these items using the org.opencms.xml api in the way:<br><br><span style="font-family: courier new,monospace;">
CmsFile configFile = this.cmsObject.readFile(resourcePath);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CmsXmlContent config = CmsXmlContentFactory.unmarshal(cmsObject, configFil
</span>e);<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">String varX = config.getStringValue(cmsObject,xPath,locale);<br><br></span>Doing it that way enables me reading from XPaths like:
<br><br><ul><li>"AnElement"</li><li>"AnElement[1]"</li><li>"AnElement/ANestedElement"</li></ul>but not<br><ul><li>"AnElement/ANestedElement[1]"</li></ul>It is possible to get the values by
<span style="font-family: courier new,monospace;">config.getStringValue(cmsObject, "AnElement/ANestedElement", locale, (int)index)</span>, but the method <span style="font-family: courier new,monospace;">getIndexCount("AnElement/ANestedElement", locale)
</span> allways returns 0.<br><br>Is there a way to figure out how much elements of nested content is available?<br><br>Any hints would be helpfull<br><br>kind regards<br><span style="font-family: courier new,monospace;">
</span><br>-- <br>Mit freundlichen Grüßen<br><br>Siegfried Puchbauer