Structure concept illustration of xml dom-Where is element, where is attribute, and where is text

Source: Internet
Author: User

I haven't touched on XML for a while. Recently I searched for XML data and found myself dizzy in Various XML concepts. It seems that I forgot the structure definition term of XML DOM. A good memory is better than a bad pen, but it is better to extract it.

Instance XML document content:

<? XML version = "1.0" encoding = "UTF-8" ?>

< Catalog Xmlns = "" >

< Book ID = "Bk101" >

< Author > Matthew </ Author >

< Title > XML developer </ Title >

< Genre > Computer </ Genre >

< Price > 44.95 </ Price >

< Publish_date > 2000-10-01 </ Publish_date >

< Description > After an inadvertant </ Description >

</ Book >

< Book ID = "Bk109" >

< Author > Kress, Peter </ Author >

< Title > Paradox lost </ Title >

< Genre > Science Fiction </ Genre >

< Price > 6.95 </ Price >

< Publish_date > 2000-11-02 </ Publish_date >

< Description > James salway discovers </ Description >

</ Book >

</ Catalog >

Corresponding concepts and terminologies:

 

Corresponding API interface (this is also called for the time being ):

< Book ID = "Bk109" > book ixmldomnode
all book >< span style =" color: #000000 "> ixmldomnodelist
author , title , price these are ixmldomelement
> author , title , price the value is ixmldomtext

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.