View Source Exogiri.Xml.Node (exogiri v0.2.0)
Encapsulates an XML element node.
Link to this section Summary
Types
The Node type.
You've either managed to bork the XPath parser (rare), OR my C code is bad (put your money here).
Functions
Add a child node.
Add next sibling to a node.
Add previous sibling to a node.
Retrieve the value of an attribute on the node by name.
Return the children of a node.
Get the node content as a string.
Return the first element child of a node.
Return the last element child of a node.
Get the local name of a Node.
Get the namespace of a node, as {abbreviation, href}.
Get the list of namespaces in this node's context.
Return the next sibling of a node.
Return the parent of a node.
Return the previous sibling of a node.
Set the value of an attribute on the node by name.
Set the node content as a string.
Unlink a node from its parent.
Run an XPath expression, with namespaces, using the node as the root.
Link to this section Types
Specs
t() :: %Exogiri.Xml.Node{ref: reference()}
The Node type.
Specs
unknown_xpath_error() :: {:error, :unknown_error}
You've either managed to bork the XPath parser (rare), OR my C code is bad (put your money here).
Link to this section Functions
Specs
Add a child node.
It will be moved from the previous parent if already had one.
Specs
Add next sibling to a node.
Specs
Add previous sibling to a node.
Specs
Retrieve the value of an attribute on the node by name.
Specs
Return the children of a node.
Specs
Get the node content as a string.
Specs
Return the first element child of a node.
Specs
Return the last element child of a node.
Specs
Get the local name of a Node.
Get the namespace of a node, as {abbreviation, href}.
Get the list of namespaces in this node's context.
Specs
Return the next sibling of a node.
Specs
Return the parent of a node.
Specs
Return the previous sibling of a node.
Specs
Set the value of an attribute on the node by name.
Specs
Set the node content as a string.
Specs
unlink(t()) :: :ok
Unlink a node from its parent.
Specs
Run an XPath expression, with namespaces, using the node as the root.