any qname will do given its elems
Remove attributes
Add a number of xmlITems, text, cdata, comments etc, the two params is to get around /(Seq) erasures.
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
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