Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Builder Class Reference

#include <elm/xom/Builder.h>

Public Member Functions

 Builder (void)
 
 Builder (bool validate)
 
 Builder (bool validate, NodeFactory *factory)
 
 Builder (NodeFactory *factory)
 
NodeFactorygetNodeFactory (void) const
 
Documentbuild (CString system_id)
 
Documentbuild (CString document, CString base_uri)
 
Documentbuild (elm::io::InStream *stream)
 
Documentbuild (elm::io::InStream *stream, CString base_uri)
 

Detailed Description

A builder may be used for building or loading an XML document.

Constructor & Destructor Documentation

◆ Builder() [1/4]

Builder ( void  )

Create a builder with the default node factory and no validation.

◆ Builder() [2/4]

Builder ( bool  validate)

◆ Builder() [3/4]

Builder ( bool  validate,
NodeFactory factory 
)

◆ Builder() [4/4]

Builder ( NodeFactory factory)

Member Function Documentation

◆ build() [1/4]

Document* build ( CString  document,
CString  base_uri 
)

◆ build() [2/4]

Document * build ( CString  system_id)

Build a document from the given system identifier.

Parameters
system_idSystem identifier to get the document from.
Returns
Read document or NULL if there is an error.

References NodeFactory::makeDocument().

◆ build() [3/4]

Document * build ( elm::io::InStream stream)

Build a document from the given input stream.

Parameters
systemInput stream to read frm.
Returns
Read document or null if there is an error.

References elm::xom::close_callback(), NodeFactory::makeDocument(), and elm::xom::read_callback().

◆ build() [4/4]

Document * build ( elm::io::InStream stream,
CString  base_uri 
)

Build a document from the given input stream.

Parameters
systemInput stream to read frm.
Returns
Read document or null if there is an error.

References CString::chars(), elm::xom::close_callback(), NodeFactory::makeDocument(), and elm::xom::read_callback().

◆ getNodeFactory()

NodeFactory * getNodeFactory ( void  ) const
inline

The documentation for this class was generated from the following files: