XML: Strings vs. Ints

  • Thread starter Thread starter Spencer
  • Start date Start date
S

Spencer

Here's another easy one...

I have quite a bit of data in an XML file, but I'm new to Microsoft's
XML API (System.XML), and I would like to know how one would go about
reading the value of an element as an int, rather than a string as
ReadString() does.

I have properly instantiated the XmlTextReader class.

Thanks again!

S. Knight
(e-mail address removed)

--
 
Spencer,

You will want to call the ReadContentAsInt method.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top