Hi All,
I am facing a problem while fetching a preceding sibling with some specific name from current node.
Following is the sample XML which I am using
<Root>
<document>
<tid>100</tid>
<location>SB</location>
<category>C1</category>
</document>
<document>
<tid>101</tid>
<location>SB</location>
<category>C3</category>
</document>
<document>
<tid>102</tid>
<location>JK</location>
<category>C4</category>
</document>
</Root>
Now suppose I am on 3rd <document> node [that is "tid = 102" ] and I want to check the values for the previous document's <location> node. If its is different than the current document's <location> then I need to call some other template.
Can anyone please help. This is very urgent!
Thanks in advance
Apurva G.
I am facing a problem while fetching a preceding sibling with some specific name from current node.
Following is the sample XML which I am using
<Root>
<document>
<tid>100</tid>
<location>SB</location>
<category>C1</category>
</document>
<document>
<tid>101</tid>
<location>SB</location>
<category>C3</category>
</document>
<document>
<tid>102</tid>
<location>JK</location>
<category>C4</category>
</document>
</Root>
Now suppose I am on 3rd <document> node [that is "tid = 102" ] and I want to check the values for the previous document's <location> node. If its is different than the current document's <location> then I need to call some other template.
Can anyone please help. This is very urgent!
Thanks in advance
Apurva G.
Comment