.NET and XML
.NET and XML Contents
Summary How to convert the return value from XML with XmlConvert and ToInt32?
Sometimes you will require to convert some values from a XML file to another datatype. In a XML file every data is stored as a string. Luckily the XmlConvert class contains many functions to make the conversion possible. In this example I will show you how you can convert a string to an integer with the function ToInt32. In the following XML file I will try to convert the attribute ID from the MainCategory element to an integer.
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting