Link to home
Start Free TrialLog in
Avatar of Johannne1
Johannne1Flag for Canada

asked on

extracting value of an element using XML::Parser


I am trying to take an input xml file and convert it to a text file but I can only use
the XML::Parser library (not the XML:LibXML library). I have been following the online
O Reilly tutorial. I can parse the file, I can print the element name but I cannot print the
value of the elements (eventually I will save these in a file). How can I print the value
ot the element.


example:
I can print MS but cannot print 27724372855
<MS>27724372855</MS>   stream-based1.txt
sample5.xml
ASKER CERTIFIED SOLUTION
Avatar of clockwatcher
clockwatcher

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Johannne1

ASKER

Thanks I am having a look at this.
Looks great! Thanks!
Avatar of clockwatcher
clockwatcher

Think the questioner may have accidentally selected his own comment as the answer or something.  Pretty sure he meant to select my comment.