XMLDOM object method: Object Attributes

Source: Internet
Author: User

Async attributes
For use
The async attribute indicates whether asynchronous download is allowed.
Basic syntax
BoolValue = XMLDocument. async; XMLDocument. async = boolValue;

Description
The Boolean value is writable (read/write). If asynchronous download is permitted, the value is True; otherwise, the value is False.

Example
XmlDoc. async = "false ";
Alert (xmlDoc. async );

Attribute
For use
Returns the attribute list of the current node.
Basic syntax
ObjAttributeList = xmlNode. attributes;

Description
Returns an object. If this node cannot contain attributes, a null value is returned.

Example
ObjAttList = xmlDoc.doc umentElement. attributes;
Alert (objAttList );

ChildNodes attributes
For use
Returns a node list that contains all available subnodes of the node.
Basic syntax
ObjNodeList = node. childNodes;

Description
Returns an object. If this node does not have a subnode, null is returned.

Example
ObjNodeList = xmlDoc. childNodes;
Alert (objNodeList );

Doctype Properties
For use
Returns a file type node that contains the DTD of the current file. This node is a general file type declaration. For example, the Node object named "EMAIL" will be returned.
Basic syntax
Objdoctypew.xmldocument.doc type;

Description
Returns an object. This attribute is read-only. If this file does not contain a DTD, null is returned.

Example
ObjDocType = xmlDoc.doc type;
Alert (objDocType. nodeName );

DocumentElement attributes

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.