DocumentBuilder

Any builder of a ("backing") document. Typical document builders convert the document URI to a local URI, parse the document using that local URI, and after parsing store the original URI as document URI in the returned document. Some document builders are capable of parsing documents inside ZIP files.

Any builder of a ("backing") document. Typical document builders convert the document URI to a local URI, parse the document using that local URI, and after parsing store the original URI as document URI in the returned document. Some document builders are capable of parsing documents inside ZIP files.

Document builders can be stacked, for example to perform some "post-processing". For example, some taxonomy documents may have a broken link in the schema location attribute, and such a post-processing step can fix that before the document is used to build a type-safe taxonomy DOM tree from it.

Other "decorating" document builders can cache parsed documents, for example.

Note that document builders backed by typical XML parsers are not thread-safe in the JVM!

Note that this document builder abstraction is useful both in the JVM and in JavaScript runtimes.

Authors

Chris de Vreeze

Companion
object
class Object
trait Matchable
class Any

Type members

Types

type BackingDoc <: BackingDocumentApi

Value members

Abstract methods

def build(uri: URI): BackingDoc

Returns the document that has the given URI as BackingDoc. The URI is typically the canonical, published URI of the document. This URI is also typically stored in the resulting document as document URI. If the document builder uses an XML catalog, the document is typically parsed from a local (mirror) URI.

Returns the document that has the given URI as BackingDoc. The URI is typically the canonical, published URI of the document. This URI is also typically stored in the resulting document as document URI. If the document builder uses an XML catalog, the document is typically parsed from a local (mirror) URI.