- //while ( valReader.Read() );\r
-\r
- while (valReader.Read())\r
- {\r
- if (valReader.IsStartElement())\r
- {\r
- if (valReader.Prefix==String.Empty)\r
- Console.WriteLine("<{0}>", valReader.LocalName);\r
- else\r
- {\r
- Console.Write("<{0}:{1}>", valReader.Prefix, valReader.LocalName);\r
- Console.WriteLine(" The namespace URI is " +\r
- valReader.NamespaceURI);\r
- }\r
- }\r
- }\r
-\r