Xmldom Object method: Object Properties _xml Base

Source: Internet
Author: User

Async Property
Role
The Async property indicates whether asynchronous downloads are allowed.
Basic syntax
Boolvalue = Xmldocument.async; Xmldocument.async = Boolvalue;

Description
Boolean values are Erasable (read/write), true if asynchronous downloads are allowed, or false on the contrary.

Example
Xmldoc.async = "false";
alert (Xmldoc.async);

Attribute attributes
Role
Returns a list of properties for the current node.
Basic syntax
Objattributelist = xmlnode.attributes;

Description
Returns an object. If this node cannot contain a property, the go home value is passed.

Example
Objattlist = xmlDoc.documentElement.attributes;
alert (objattlist);

ChildNodes Property
Role
Returns a list of nodes that contain all the available child nodes of the node.
Basic syntax
Objnodelist=node.childnodes;

Description
Returns an object. If the node does not have a child node, returns NULL.

Example
objNodeList = Xmldoc.childnodes;
alert (objnodelist);

DOCTYPE property
Role
Returns the file type node containing the DTD for the current file. This node is a general file type declaration, for example, a node that is called an email node object is returned.
Basic syntax
Objdoctype=xmldocument.doctype;

Description
Returns an object, which is read-only. If the file does not contain a DTD, it returns NULL.

Example
Objdoctype = Xmldoc.doctype;
alert (objdoctype.nodename);

DocumentElement Property



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.