XML DOM Basics
XML DOM Operations
XML DOM Objects
XML DOM Useful Resources
Selected Reading
- XML DOM - Accessing
- XML DOM - Navigation
- XML DOM - Traversing
- XML DOM - Loading
- XML DOM - Methods
- XML DOM - Node Tree
- XML DOM - Nodes
- XML DOM - Model
- XML DOM - Overview
- XML DOM - Home
XML DOM Operations
- XML DOM - Clone Node
- XML DOM - Remove Node
- XML DOM - Replace Node
- XML DOM - Add Node
- XML DOM - Create Node
- XML DOM - Set Node
- XML DOM - Get Node
XML DOM Objects
- DOM - DOMException Object
- DOM - XMLHttpRequest Object
- DOM - Comment Object
- DOM - CDATASection Object
- DOM - Attribute Object
- DOM - Element Object
- DOM - Notation Object
- DOM - EntityReference Object
- DOM - Entity Object
- DOM - ProcessingInstruction
- DOM - DocumentType Object
- DOM - DOMImplementation
- DOM - NamedNodeMap Object
- DOM - NodeList Object
- DOM - Node Object
XML DOM Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
DOM - Element Object
DOM - Element Object
可将XML要素定义为XML的组成部分。 部件可以作为集装箱持有文字、内容、属性、媒体目标或所有这些内容。 每当教区划出一项XML文件,反对知情,教区则通过一个要素节点。 内容节点载有案文,称为案文节点。
元素物继承了诺德物体的特性和方法,作为元素物也被视为诺德。 除文物性质和方法外,还有以下财产和方法。
Properties
下表列出了 Element 反对的属性:
Attribute | Type | Description |
---|---|---|
DOMString | It gives the name of the tag for the specified element. | |
schemaTypeInfo | TypeInfo | It represents the type information associated with this element. This has been removed. Refer | .
Methods
下表列出了要素目标方法——
Methods | Type | Description |
---|---|---|
DOMString | Retrieves the value of the attribute if exists for the specified element. | |
DOMString | Retrieves an attribute value by local name and namespace URI. | |
Attr | Retrieves the name of the attribute node from the current element. | |
Attr | Retrieves an Attr node by local name and namespace URI. | |
NodeList | Returns a NodeList of all descendant Elements with a given tag name, in document order. | |
NodeList | Returns a NodeList of all the descendant Elements with a given local name and namespace URI in document order. | |
boolean | Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise. | |
boolean | Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise. | |
No Return Value | Removes an attribute by name. | |
No Return Value | Removes an attribute by local name and namespace URI. | |
Attr | Specified attribute node is removed from the element. | |
No Return Value | Sets a new attribute value to the existing element. | |
No Return Value | Adds a new attribute. If an attribute with the same local name and namespace URI is already present on the element, its prefix is changed to be the prefix part of the quapfiedName, and its value is changed to be the value parameter. | |
Attr | Sets a new attribute node to the existing element. | |
Attr | Adds a new attribute. If an attribute with that local name and that namespace URI is already present in the element, it is replaced by the new one. | |
setIdAttribute | No Return Value | If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute. This has been removed. Refer | .
setIdAttributeNS | No Return Value | If the parameter isId is true, this method declares the specified attribute to be a user-determined ID attribute. This has been removed. Refer | .