Relationships
Task: Set the Parent
Task: Insert Previous Sibling
Task: Insert Next Sibling
Removal or Replacement
Task: Remove Child from Parent
Task: Replace Child
Document
Task: Get the Document
New Document
Task: Create an Empty Document
Task: Parse a String into a New Document
Task: Parse an IO Stream into a New Document
Task: Create a Document from an Existing Document
Task: Clone a Document
Document Type
Task: Get the Document Type
Task: Set the Document Type
XML Declaration
Task: Get the XML Declaration
Task: Set the XML Declaration
Children
Task: Add an Element Child
Task: Add a Non-Element Child
Writing
Task: Write to $stdout
Task: Write to IO Stream
Task: Write with No Indentation
Task: Write with Specified Indentation
Querying
Task: Get the Encoding
Task: Get the Node Type
Task: Get the Root Element
Task: Determine Whether Stand-Alone
Task: Get the Version
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
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
Siblings
Task: Find Previous Sibling
Task: Find Next Sibling
Position
Task: Find Own Index Among Siblings
Recursive Traversal
Task: Traverse Each Recursively
Recursive Search
Representation
Task: Represent a String
Parent?
Task: Determine Whether the Node is a Parent
Queries
Task: Get the Count of Children
Task: Get the Index of a Given Child
Task: Get the Children
Additions
Task: Add a Child at the Beginning
Task: Add a Child at the End
Task: Replace a Child with Another Child
Task: Replace Multiple Children with Another Child
Task: Insert Child Before a Given Child
Task: Insert Child After a Given Child
Deletions
Task: Remove a Given Child
Task: Remove the Child at a Specified Offset
Task: Remove Children That Meet Specified Criteria
Iterations
Task: Iterate Over Children
Task: Iterate Over Child Indexes
Clones
Task: Clone Deeply