GenDOM.Node (gen_dom v0.0.1)

Summary

Functions

append_child(node, child)

assign(node, assigns)

assign(node, key, value)

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clone_node(node)

compare_document_position(node, other_node)

contains?(node, other_node)

get(name)

has_child_nodes?(node)

insert_before(node, new_node, map)

is_default_namespace?(node, uri)

is_equal_node?(node, other_node)

is_same_node?(node, other_node)

lookup_namespace_uri(node, prefix)

lookup_prefix(node, namespace)

merge(node, fields)

new(opts)

Creates a new Node and returns the Node struct.

This is a convenience function that calls start_link and then immediately gets the Node struct.

Examples

iex> {:ok, node} = GenDOM.Node.new([])
iex> %GenDOM.Node{} = node

normalize(node)

put(node, key, value)

remove_child(node, child)

replace_child(node, new_child, old_child)

start_link(opts)