Marco

Marco

  • NA
  • 59
  • 0

XmlReader

Sep 21 2009 7:20 PM
Hello,
 I'm parsing a XML file in this way that seems fine:
try {
        XmlReaderSettings settings = new XmlReaderSettings();
                settings.IgnoreWhitespace = true;                               
                XmlReader reader = XmlReader.Create(new XmlTextReader(filename), settings);
                while (reader.Read()) {
                    switch (reader.NodeType) {
                    }
      }      catch (XmlException e) {
                Console.WriteLine("error occured: " + e.Message);
            }


The problem: I have a node like this:
 <node name="List<char>">
The parser says no th the '<' and '>' inside the attribute;
How can afford it? (I need a way to don't get any error)

thanks

Answers (2)