Advertisement

03.21.2008 at 02:33PM PDT, ID: 23260700
[x]
Attachment Details

finding value of xml attribute in C#

Asked by CoreNeter in C# Programming Language, Extensible Markup Language (XML)

Tags: C#, C# xml load

I have a link to a file which simply contains:

C:\windows\temp\myxml.xml
<Sample test="value" />

The above is returned in my C# script as a string and is loaded into an XMLDocument this way:

XmlDocument xdocva = new XmlDocument();
xDocva.LoadXml(FileContentToString(C:\windows\temp\myxml.xml));

How can I grab the value of test?

Thanks
Start Free Trial
 
 
[+][-]03.21.2008 at 04:11PM PDT, ID: 21183868

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, Extensible Markup Language (XML)
Tags: C#, C# xml load
Sign Up Now!
Solution Provided By: jlach01
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.21.2008 at 05:27PM PDT, ID: 21184176

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.21.2008 at 08:28PM PDT, ID: 21184658

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628