BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


.NET and XML
What is the 'pull model'?
What is EXSLT.NET?
What is ADO.NET?
How to create a ""hello world"" XML WebService in Visual Studio .NET?
Accessing and Manipulating XML Data in Microsoft .NET Framework
Developing Multi-Threaded .NET Applications


 
 

<< XSLT 


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 190

How to convert the return value from XML with XmlConvert and ToInt32?


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.  

Output:

1122334455

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XSLT 





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML