Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# xml get root attributes

XDocument xdoc = XDocument.Load(targetFileName);
var attrib = xdoc.Root.Attribute("options").Value;

// attrib = "idprefix:realID"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #xml #root #attributes
ADD COMMENT
Topic
Name
3+8 =