xml

How to use XML attributes

If you know basic principles from the article How to create a XML document, you can use attributes to add extra information to an element. Instead of putting information into a sub-element, you can use an attribute. In the XML community, deciding whether to use sub-elements or attributes—and what information should go into an attribute—is a …

Learn more

How to create a XML document

When you are planning to create your own XML document, you need to remember and follow some rules:

– XML documents must start with an XML declaration like <?xml version=”1.0″?>. This signals that the document contains XML and indicates any special text encoding. However, many XML parsers work fine even if this detail …

Learn more

How to read XML file in VB.NET

Suppose that the user has to read the XML file he/she already generated. The application should provide functionality to extract all vendors from Canada, and after that the user has to process them in alphabetic order.

 

Web developer has to follow these steps:

   1.Create the XDocument using the XML.
   2.Navigate the XElement elements to reach the Vendor ones.
   3.Take the XElement instances …

Learn more

How to read XML file in C#

Suppose that the user has to read the XML file he/she already generated. The application should provide functionality to extract all vendors from Canada, and after that the user has to process them in alphabetic order.

 

Web developer has to follow these steps:
   1.Create the XDocument using the XML.
   2.Navigate the XElement elements to reach the Vendor ones.
   3.Take the XElement instances …

Learn more

How to generate XML from data source in VB.NET

Let’s Web developer has to develop a page where the user submits a file containing the ISBN of all the books he/she needs information about. The user has to retrieve these books and create an XML file with the book title, author and price.

Web developer can use a LINQ query to pass child elements and nest data, by …

Learn more

How to generate XML from data source in C#

Let’s Web developer has to develop a page where the user submits a file containing the ISBN of all the books he/she needs information about. The user has to retrieve these books and create an XML file with the book title, author and price.

Web developer can use a LINQ query to pass child elements and nest data, by …

Learn more

How to create an XML file by using LINQ to XML in VB.NET

In .NET Framework 4.0 the System.Xml APIs are obsolete and are maintained for compatibility reasons only.  Web developers can create XML file by using LINQ to XML. The next picture presents classes in LINQ to XML.
 
 
 
 

The classes in LINQ to XML

 

These classes are included in System.Xml.Linq namespace and the following ones are the most …

Learn more

How to create an XML file by using LINQ to XML in C#

In .NET Framework 4.0 the System.Xml APIs are obsolete and are maintained for compatibility reasons only.  Web developers can create XML file by using LINQ to XML. The next picture presents classes in LINQ to XML.
 
 
 
 
 
 
 
 

The classes in LINQ to XML

 

These classes are included in System.Xml.Linq namespace and the following ones are the most …

Learn more

XQL (XML Query Language)

XQL is a query language used to extract data from XML documents. XQL uses XML as a data model and is very similar to the pattern matching semantics of XSL.

Related TutorialsASP.NET (Active Server Pages for .NET)
Application domain
Shared …

Learn more