. NET Operation XML file --- [add]

Source: Internet
Author: User

Recently learned. net xml file operations, summarized as follows: XML Full name: Extensible Markup Language (Extensible Markup Language) XML is used to mark electronic files to make it a structured Markup Language, it can be used to mark data and define data types. It is a source language that allows users to define their own markup language. Differences between XML and databases: databases provide stronger data storage and analysis capabilities, such as data indexing, sorting, search, and consistency. XML is only used to store data; the example is introduced below www.2cto.com. NET how to operate xml xmlfile. the detailed information of the xml file is as follows: [html] <? Xml version = "1.0" encoding = "UTF-8"?> <Pizza> <Pizzas id = "1" size = "6" price = "18"> shiitake mushroom and ham Pizza </Pizzas> <Pizzas id = "2" size = "6" price = "18"> vegetable sausage pizza </Pizzas> <Pizzas id = "3" size = "6" price = "18"> smoked chicken mushroom pizza </Pizzas> <pizzas id = "4" size = "6" price = "18"> Margaret pizza </Pizzas> <Pizzas id = "5" size = "6" price = "28"> Moroccan Pizza </Pizzas> </Pizza> <? Xml version = "1.0" encoding = "UTF-8"?> <Pizza> <Pizzas id = "1" size = "6" price = "18"> shiitake mushroom and ham Pizza </Pizzas> <Pizzas id = "2" size = "6" price = "18"> vegetable sausage pizza </Pizzas> <Pizzas id = "3" size = "6" price = "18"> smoked chicken mushroom pizza </Pizzas> <pizzas id = "4" size = "6" price = "18"> Margaret pizza </Pizzas> <Pizzas id = "5" size = "6" price = "28"> Moroccan Pizza </Pizzas> </Pizza> showXml. aspx file and XMLFILE. path relationship of the xml file: showXml. details of the aspx file: Code: [csharp] <% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "showXm L. aspx. cs "Inherits =" showXml "%> <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <Html xmlns =" http://www.w3.org/1999/xhtml "> <Head runat =" server "> <title>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.