In want to create my navigation panel dynamically (configured by xml) using SectionStackSections and one TreeGrid per section.
In my xml file I have defined three sections and within each section one or more nodes defining the content for the TreeGrid within the defined section.
The TreeGrids I only pass the correct xPath, generate an own DataSource for every grid with its own ID dynamically, that works.
But before that I want to know how many section entries there are in my xml file to know how many SectionStackSections I have to create.
Actually I need to read the xml file anyhow, also to find out the name of the subelement of each section (it defines the name of the section).
I've then read about the XMLTools, but it doesn't work the way I want to.
Problem is the following call that always returns null (no matter what xPath I specify):
Also it's unclear how to find out the number of section nodes with the following method:
The data object from the transformResponse method only shows: [XMLDoc <navigation>]
I attached the xml file and the java class, could you please take a quick look at it and give me a hint ...
Thank you very much.
In my xml file I have defined three sections and within each section one or more nodes defining the content for the TreeGrid within the defined section.
The TreeGrids I only pass the correct xPath, generate an own DataSource for every grid with its own ID dynamically, that works.
But before that I want to know how many section entries there are in my xml file to know how many SectionStackSections I have to create.
Actually I need to read the xml file anyhow, also to find out the name of the subelement of each section (it defines the name of the section).
I've then read about the XMLTools, but it doesn't work the way I want to.
Problem is the following call that always returns null (no matter what xPath I specify):
Code:
XMLTools.selectString(xmlData, "/navigation");
Code:
XMLTools.selectNodes(xmlData, "/navigation");
I attached the xml file and the java class, could you please take a quick look at it and give me a hint ...
Thank you very much.
Comment