Removes all child trees with a given qname
Remove attributes
Add a number of trees, xmlItems, text, cdata, comments etc
Optionally add a child, when None no child we be added
Optionally add a single attribute, when None no attribute will be added
Add attributes
Add attributes
Add an Iterable of ItemOrElems wrapped in Option, those which are Some will be added.
Add a number of ItemOrElems wrapped in Option, those which are Some will be added.
Cleans out any child text nodes (comments, cdata etc) and just leaves child elements
Fold over the current tree, allows folding deep within a builder.
Fold over the current tree, allows folding deep within a builder. Either the fold works or this
is returned with the FoldError.
fold_! calls fold but throws the error when its returning a root
Does not throw when NoPaths is returned, simply returning this
see ~> Option[String]
see ~>
Optionally sets the tree to a single Text node child, replacing all others, None will not change the current node.
Optionally sets the tree to a single Text node child, replacing all others, None will not change the current node.
<(Elem("root"l)) ~> None
would leave an empty <root/>
sets the tree to a single Text node child, replacing all others