开发者

How to Create an XML object in Visual Studio C#

开发者 https://www.devze.com 2023-01-21 23:50 出处:网络
I want to pass an XML object from code behind file of an aspx to an class libr开发者_StackOverflow中文版ary.for that how can i create a XML Object.

I want to pass an XML object from code behind file of an aspx to an class libr开发者_StackOverflow中文版ary.for that how can i create a XML Object. please its urgent.


.NET includes multiple XML APIs (XML Document—a typical DOM implementation, a streaming API, an XPath orientated API and LINQ to XML). So lots to chose from.

Without more detail impossible to say which is your best approach. I would suggest starting reading MSDN at "XML Documents and Data".


Load an XML file from disk http://msdn.microsoft.com/en-us/library/875kz807.aspx

or some XML from a string

http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消