Tasks on this page:
New Element
Task: Create a Default Element
Task: Create a Named Element
Task: Create an Element with Name and Parent
Task: Create an Element with Name, Parent, and Context
Task: Create a Shallow Clone
Attributes
Task: Create and Add an Attribute
Task: Add an Existing Attribute
Task: Add Multiple Attributes from a Hash
Task: Add Multiple Attributes from an Array
Task: Retrieve the Value for an Attribute Name
Task: Retrieve the Attribute Value for a Name and Namespace
Task: Delete an Attribute
Task: Determine Whether the Element Has Attributes
Children
Task: Create and Add an Element
Task: Add an Existing Element
Task: Create and Add an Element with Attributes
Task: Add an Existing Element with Added Attributes
Task: Delete a Specified Element
Task: Delete an Element by Index
Task: Delete an Element by XPath
Task: Determine Whether Element Children
Task: Get Element Descendants by XPath
Task: Get Next Element Sibling
Task: Get Previous Element Sibling
Task: Add a Text Node
Task: Replace the First Text Node
Task: Remove the First Text Node
Task: Retrieve the First Text Node
Task: Retrieve a Specific Text Node
Task: Determine Whether the Element has Text Nodes
Task: Get the Child at a Given Index
Task: Get All CDATA Children
Task: Get All Comment Children
Task: Get All Processing Instruction Children
Task: Get All Text Children
Namespaces
Task: Add a Namespace
Task: Delete the Default Namespace
Task: Delete a Specific Namespace
Task: Get a Namespace URI
Task: Retrieve Namespaces
Task: Retrieve Namespace Prefixes
Iteration
Task: Iterate Over Elements
Task: Iterate Over Elements Having a Specified Attribute
Task: Iterate Over Elements Having a Specified Attribute and Value
Task: Iterate Over Elements Having Specified Text
Context
Other Getters