N
Naresh Ramaswamy
hi,
I am reading an XML document and storing in a array.
Now I need to search for presence of a particular element and
array = {elements of XML Document}
array[1] = {chile elelments of XML document}
*** I want to ***
search if element X or Y or Z exists
if
X exists
Do this
elsif Y exists
Do this
else
Do This
end
I am not finding any way to search for elelemtns in XML file.
Please provide your solution.
My XML file looks like this
<TXN value = '3'>
<SEND request = 'X' > <!- This can be either X or Y or Z -->
<MODIFY val1 = 'from' val2 = 'Show' val3 = '200'/>
</SEND>
</TXN>
I am using REXML solution to play with Ruby file.
regards,
Naresh
I am reading an XML document and storing in a array.
Now I need to search for presence of a particular element and
array = {elements of XML Document}
array[1] = {chile elelments of XML document}
*** I want to ***
search if element X or Y or Z exists
if
X exists
Do this
elsif Y exists
Do this
else
Do This
end
I am not finding any way to search for elelemtns in XML file.
Please provide your solution.
My XML file looks like this
<TXN value = '3'>
<SEND request = 'X' > <!- This can be either X or Y or Z -->
<MODIFY val1 = 'from' val2 = 'Show' val3 = '200'/>
</SEND>
</TXN>
I am using REXML solution to play with Ruby file.
regards,
Naresh