troubleshooting Question

Get a value from an XML file?

Avatar of hmcgeehan
hmcgeehan asked on
5 Comments1 Solution287 ViewsLast Modified:
I have an xml file (see its contents below)

Anyone know code which (given a full path to an xml file) and the field name 'for example HEADLINE' it will return the value?

<?xml version="1.0" encoding="UTF-8"?>
		<field name="DOKNR" stn="DOCID">340913</field>
		<field name="SOURCEID">977</field>
		<field name="SOURCEL">Kildare Post</field>
		<field name="EDITION"/>
		<field name="SDATE" stn="SDATE" format="ddmmyyyy">29042009</field>
		<field name="CDATE" stn="SOURCE" format="ddmmyyyy">27052009</field>
		<field name="PAGE" stn="SPAGE">25</field>
		<field name="HEADLINE" stn="HEADLINE">On the beat</field>
		<field name="SUBTITLE"/>
		<field name="AUTHOR"/>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros