Converts a StAX Comment
event to a yaidom Comment
Converts the given iterator of XMLEvent
instances to a yaidom Document
.
Converts the given iterator of XMLEvent
instances to a yaidom Document
.
First drops events until a "start document" event is found. After conversion, no "start/end document/element" events may be left.
Converts the given sequence of XMLEvent
instances to a yaidom Document
.
Converts the given sequence of XMLEvent
instances to a yaidom Document
. Invokes convertToDocument(v.iterator)
.
Converts the given iterator of XMLEvent
instances to a yaidom Elem
.
Converts the given iterator of XMLEvent
instances to a yaidom Elem
.
First drops events until a "start element" event is found. After conversion, no "start/end element" events may be left. The given parent scope is used.
Be careful: the namespaces inherited by the "start element event", if any, are ignored! In other words, the ancestry of the passed events is entirely ignored. This may cause an exception to be thrown, if there are indeed such namespaces, unless they are a subset of the passed parent scope.
Converts the given sequence of XMLEvent
instances to a yaidom Elem
.
Converts the given sequence of XMLEvent
instances to a yaidom Elem
. Invokes convertToElem(v.iterator, parentScope)
.
Be careful: the namespaces inherited by the "start element event", if any, are ignored! In other words, the ancestry of the passed events is entirely ignored. This may cause an exception to be thrown, if there are indeed such namespaces, unless they are a subset of the passed parent scope.
Converts a StAX EntityReference
event to a yaidom EntityRef
Converts a StAX ProcessingInstruction
event to a yaidom ProcessingInstruction
Converts a StAX Characters
event to a yaidom Text
Converter from StAX events to yaidom nodes, in particular from
immutable.IndexedSeq[XMLEvent]
to Elem and to Document.There are also analogous conversions that take an
Iterator[XMLEvent]
instead. These can be used to reduce memory usage.This converter regards the input event stream more like an "ElemBuilder" than an "Elem", in that namespace declarations instead of scopes are extracted from input "elements", and in that conversions to yaidom Elems take an additional parent scope parameter (against which namespace declarations are resolved to get the scope of the yaidom element).