O
Olivier7777
Hi,
I have an issue displaying data with the treeview control.
Here is my xml file :
<ROOT>
<FOLDER>
<MODEL>
<REPORT>
<MARKER id="1" />
</REPORT>
</MODEL>
<MODEL>
<REPORT>
<MARKER id="2" />
</REPORT>
</MODEL>
</FOLDER>
</ROOT>
How to obtain this tree : Folder\Model\Report using the ID of the MARKER
element ?
I've tried with /FOLDER[MODEL/REPORT/MARKER/@id='1']
This woks fine concerning the tree display but not for the selected data :
the 2nd REPORT element with the id MARKER equals to 2 is included (logical
but annoying ;-).
An with this /FOLDER/MODEL/REPORT[MARKER/@id='1'] it is the contrary :
selection is ok but i loose FOLDER and MODEL nodes.
Can i resolve this using XPath or does it required XSLT ?
Thanks.
I have an issue displaying data with the treeview control.
Here is my xml file :
<ROOT>
<FOLDER>
<MODEL>
<REPORT>
<MARKER id="1" />
</REPORT>
</MODEL>
<MODEL>
<REPORT>
<MARKER id="2" />
</REPORT>
</MODEL>
</FOLDER>
</ROOT>
How to obtain this tree : Folder\Model\Report using the ID of the MARKER
element ?
I've tried with /FOLDER[MODEL/REPORT/MARKER/@id='1']
This woks fine concerning the tree display but not for the selected data :
the 2nd REPORT element with the id MARKER equals to 2 is included (logical
but annoying ;-).
An with this /FOLDER/MODEL/REPORT[MARKER/@id='1'] it is the contrary :
selection is ok but i loose FOLDER and MODEL nodes.
Can i resolve this using XPath or does it required XSLT ?
Thanks.