DomReader
Deprecated
Don't use directly. Instead create an instance through xmlStreaming
Replace with
import nl.adaptivity.xmlutil.xmlStreaming
xmlStreaming.newReader(delegate)
XmlReader that reads from DOM.
Author
Created by pdvrieze on 22/03/17.
Constructors
Properties
The declared encoding for the document. Unlike general parsing, this value is accessible after reading the document element. The document element must be the first non-whitespace element. The value for this property before document element presence is known is implementation defined (and may change).
Get some information on the current location in the file. This is implementation dependent.
The current namespace context
The declared standalone status for the document. Unlike general parsing, this value is accessible after reading the document element. The document element must be the first non-whitespace element. The value for this property before document element presence is known is implementation defined (and may change).
The declared xml version for the document. Unlike general parsing, this value is accessible after reading the document element. The document element must be the first non-whitespace element. The value for this property before document element presence is known is implementation defined (and may change).
Functions
Get the next text sequence in the reader. This will skip over comments and ignorable whitespace (starting the content), but not tags. Any tags encountered with cause an exception to be thrown. It can either be invoked when in a start tag to return all text content, or on a content element to include it (if text or cdata) and all subsequent siblings.
Differs from .siblingsToFragment in that it skips the current event.
Read the current element (and content) only into a fragment.
Is the currrent element character content
Check that the current state is a start element for the given name. The mPrefix is ignored.
Is the current element a start element
From a start tag read the text only content of the element. Comments are allowed and handled, but subtags are not allowed. This tag finishes at the end of the element.
Read the current element (and content) and all its siblings into a fragment.
From a start element, skip all element content until the corresponding end element has been read. After invocation the end element has just been read (and would be returned on relevant state calls).
Skil the preamble events in the stream reader
Write the current event to the writer. This will not move the reader.