xmldom::DomImplementationLS Class Reference

#include <DomImplementationLS.h>

Inherited by xmldom::DomImplementation.

Inheritance diagram for xmldom::DomImplementationLS:

Inheritance graph
[legend]
List of all members.

Detailed Description

The interface DomImplementationLS contains the factory methods for creating Load and Save objects.

The expectation is that an instance of the DomImplementationLS interface can be obtained by using binding-specific casting methods on an instance of the DomImplementation interface or, if the DomDocument supports the feature "Core" version "3.0" defined in [DOM Level 3 Core], by using the method DomImplementation.DomImplementation::getFeature() with parameter values "LS" (or "LS-Async") and "3.0" (respectively).


Public Types

enum  LSMode { ModeSynchronous = 1, ModeAsynchronous = 2 }
enum  LSSchemaType { AnySchema, XMLSchema, DTDSchema }
 The type of the schema which will be used. More...

Public Member Functions

virtual ~DomImplementationLS ()
 dtor
virtual DomLSParser createLSParser (LSMode mode, LSSchemaType schemaType)=0
 Create a new LSParser.
virtual DomLSSerializer createLSSerializer ()=0
 Create a new LSSerializer object.


Member Enumeration Documentation

enum xmldom::DomImplementationLS::LSMode

Enumerator:
ModeSynchronous  Create a synchronous DomLSParser.
ModeAsynchronous  Create an asynchronous DomLSParser.

enum xmldom::DomImplementationLS::LSSchemaType

The type of the schema which will be used.

Note:
This is an extension to the standard, introduced by Tobias Erbsland to simplify the selection of the schema type. In the original standard a string is submitted with an URL defining the schema type. This is more flexible, but harder to maintain.
Enumerator:
AnySchema  Use any schema provided in the document.
XMLSchema  Use a XML schema provided in the document.
DTDSchema  Use a DTD schema provided in the document.


Constructor & Destructor Documentation

xmldom::DomImplementationLS::~DomImplementationLS (  )  [virtual]

dtor


Member Function Documentation

virtual DomLSParser xmldom::DomImplementationLS::createLSParser ( LSMode  mode,
LSSchemaType  schemaType 
) [pure virtual]

Create a new LSParser.

The newly constructed parser may then be configured by means of its DomConfiguration object, and used to parse documents by means of its parse method. Parameters

Parameters:
mode The mode argument is either ModeSynchronous or ModeAsynchronous, if mode is ModeSynchronous then the LSParser that is created will operate in synchronous mode, if it's ModeAsynchronous then the DomLSParser that is created will operate in asynchronous mode.
schemaType The type of the schema. See LSSchemaType for details.
Returns:
The newly created DomLSParser object. This DomLSParser is either synchronous or asynchronous depending on the value of the mode argument.
Note:
By default, the newly created DomLSParser does not contain a DomErrorHandler, i.e. the value of the "error-handler" configuration parameter is null. However, implementations may provide a default error handler at creation time. In that case, the initial value of the "error-handler" configuration parameter on the new DomLSParser object contains a reference to the default error handler.

Implemented in xmldom::DomImplementation.

virtual DomLSSerializer xmldom::DomImplementationLS::createLSSerializer (  )  [pure virtual]

Create a new LSSerializer object.

Returns:
The newly created LSSerializer object.
Note:
By default, the newly created DomLSSerializer has no DomErrorHandler, i.e. the value of the "error-handler" configuration parameter is null. However, implementations may provide a default error handler at creation time. In that case, the initial value of the "error-handler" configuration parameter on the new DomLSSerializer object contains a reference to the default error handler.

Implemented in xmldom::DomImplementation.


The documentation for this class was generated from the following files:
Generated on Fri May 30 11:15:12 2008 for XMLDOM by  doxygen 1.5.2