Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Xml;
- class Test {
- public static void Main () {
- TextReader reader = new StringReader ("<elem att1='foo' att2='bar'/>");
- XmlReader xml = XmlReader.Create (reader);
- while (xml.Read ())
- while (xml.MoveToNextAttribute ())
- while (xml.ReadAttributeValue ())
- Console.WriteLine (xml.Value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement