C
christopher.mcmahon
Say I have an XML record like
<Subscriber>
<name>
<firstName>CHRIS</firstName>
<lastName>MCMAHON</lastName>
</name>
<ssn>111223333</ssn>
</Subscriber>
I'd like to extract each value of each tag (without regard to
hierarchy) and add it to an array:
["CHRIS","MCMAHON","111223333"]
The REXML docs don't seem to address this. I've tried various
methods, but I can't seem to find the way to address only the contents
of each tag. Any suggestions would be welcome
<Subscriber>
<name>
<firstName>CHRIS</firstName>
<lastName>MCMAHON</lastName>
</name>
<ssn>111223333</ssn>
</Subscriber>
I'd like to extract each value of each tag (without regard to
hierarchy) and add it to an array:
["CHRIS","MCMAHON","111223333"]
The REXML docs don't seem to address this. I've tried various
methods, but I can't seem to find the way to address only the contents
of each tag. Any suggestions would be welcome