Hi ,
I have a big xml in which there are many elements, which has internal xpath reference to another element.
Here is xml -
<publishers>
<app.test.module.library.Publisher>
<typeId>
<selectedId>101</selectedId>
<selectedText>Book</selectedText>
</typeId>
<regionCode>
<selectedId>102</selectedId>
<selectedText>NWD</selectedText>
</regionCode>
</app.test.module.library.Publisher>
<app.test.module.library.Publisher>
<typeId reference="../../app.test.module.library.Publisher/typeId" />
<regionCode>
<selectedId>101</selectedId>
<selectedText>UWY</selectedText>
</regionCode>
</app.test.module.library.Publisher>
<app.test.module.library.Publisher>
<typeId>
<selectedId>100</selectedId>
<selectedText>Deposit</selectedText>
</typeId>
<regionCode>
<selectedId>100</selectedId>
<selectedText>WHU</selectedText>
</regionCode>
</app.test.module.library.Publisher>
</publishers>
So the typeId of second Publisher element points to the typeId of First Publisher element [ <typeId reference="../../app.test.module.library.Publisher/typeId" /> ]
While querying in the sql, there has to be some way to reach to the referred element but I have not been able to figure out so far.
would appreciate some help here.
Thanks
- Edited by jsh2015 Friday, March 27, 2015 12:27 AM corrected the question with providing more details