I would try something like this:
XmlDocument doc = new XmlDocument();
doc.LoadXml("<reply success=\"true\">More nodes go here</reply>");
XmlElement root = doc.DocumentElement;
string s = root.Attributes["success"].Value;
More Related Contents:
- Using Xpath With Default Namespace in C#
- XDocument or XmlDocument
- Recursion, parsing xml file with attributes into treeview c#
- Using StringWriter for XML Serialization
- How to Read XML in .NET?
- DataContract XML serialization and XML attributes
- HTTP post XML data in C#
- Serializing an object as UTF-8 XML in .NET
- Serialize a nullable int
- how to read all files inside particular folder
- How to prevent blank xmlns attributes in output from .NET’s XmlDocument?
- How to check if a file exists in a folder?
- Adding elements to an xml file in C#
- How to define multiple names for XmlElement field?
- Passing parameters to XSLT Stylesheet via .NET
- Modify XML existing content in C#
- How to create XmlElement attributes with prefix?
- Parsing XML using XDocument
- Convert an object to an XML string
- How to use XPath function in a XPathExpression instance programatically?
- Binding properties in code behind
- Deserialize object property with StringReader vs XmlNodeReader
- Use the XmlInclude or SoapInclude attribute to specify types that are not known statically
- How can I get started making a C# RSS Reader?
- How/Can I use linq to xml to query huge xml files with reasonable memory consumption?
- Writing XML attributes and namespace declarations in a specific order
- Read nodes of a xml file in C#
- How do I return XML from a Stored Procedure?
- Creating a specific XML document using namespaces in C#
- How to convert JSON to XML or XML to JSON in C#?