PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1
SFXXSDDOMParser
[XML] Class for parsing the XML document with Schema using the DOM method.
#include <SFXXSDDOMParser.hpp>
class SFXXSDDOMParser : public SFXXMLDOMParser;
SFMTYPEDEFCLASS(SFXXSDDOMParser)

Inheritance diagram

 Inheritance diagram of SFXXSDDOMParserClass

Collaboration diagram

 Collaboration diagram of SFXXSDDOMParserClass

Description

The SFXXSDDOMParser class parses a XSD file (XML schema) using the DOM method by inheriting from the SFXXMLDOMParser class.

[Note] XML Schema Specification

W3C : XML Schema

Reference

SFXXMLDOMParser | SFXXMLSAXParser

Member

Constructor/Destructor
SFXXSDDOMParser( Void )
Constructor of SFXXSDDOMParser class.
~SFXXSDDOMParser( Void )
Destructor of SFXXSDDOMParser class.
Public Functions
Void Reset( Void )
Reset all the internal variables.
Bool GetCreateCommentNodes( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to create Comment nodes.
Bool GetDoIndent( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to indent.
Bool GetDoNamespaces( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to process namespace.
Bool GetDoSchema( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to process the XML Schema.
SFXXMLDocumentPtr GetDocument( Void ) (inherits from SFXXMLDOMParser)
Get the Document node.
ACharConstPtr GetErrorInfo( Void ) (inherits from SFXXMLDOMParser)
Get the internal error message.
static
SFXXMLElementPtr
GetFirstChildElement( SFXXMLNodeConstPtr parent ) (inherits from SFXXMLDOMParser)
Get the first child Element node of a specified node.
static
SFXXMLElementPtr
GetFirstChildElementNS( SFXXMLNodeConstPtr parent , SFXAnsiStringHandleConst elemNames , SFXAnsiStringConstRef uri , SInt32 length ) (inherits from SFXXMLDOMParser)
Get the first child Element node of a specified node, which matches the namespace URI and one of the local names specified.
Bool GetIgnoreAnnotations( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to ignore annotations.
Bool GetLoadExternalDTD( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to load the external DTD.
static
SFXXMLElementPtr
GetNextSiblingElement( SFXXMLNodeConstPtr node ) (inherits from SFXXMLDOMParser)
Get the next sibling Element node of a specified node.
static
SFXXMLElementPtr
GetNextSiblingElementNS( SFXXMLNodeConstPtr node , SFXAnsiStringHandleConst elemNames , SFXAnsiStringConstRef uri , SInt32 length ) (inherits from SFXXMLDOMParser)
Get the next sibling Element node of a specified node, which matches the namespace URI and one of the local names specified.
Bool GetStandalone( Void ) (inherits from SFXXMLDOMParser)
Get the Standalone declaration of the XML document.
Bool GetValidationDTD( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to validate the XML document with DTD.
Bool GetValidationSchema( Void ) (inherits from SFXXMLDOMParser)
Check whether or not to validate the XML document with XML Schema.
SFCError Parse( SFBFileSmpConstRef source ) (inherits from SFXXMLDOMParser)
Parse( SFXStreamReaderConstRef source ) (inherits from SFXXMLDOMParser)
Parse( SFXPathConstRef source ) (inherits from SFXXMLDOMParser)
Parse( SFXAnsiStringConstRef source ) (inherits from SFXXMLDOMParser)
Parse the XML document using the DOM parser.
Void SetCreateCommentNodes( BoolConst create ) (inherits from SFXXMLDOMParser)
Set whether or not to create comment nodes.
Void SetDoIndent( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to indent.
Void SetDoNamespaces( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to process namespaces.
Void SetDoSchema( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to process the XML Schema.
Void SetGrammar( SFXXMLGrammar::GrammarType grammar ) (inherits from SFXXMLDOMParser)
SetGrammar( SFXXMLGrammar::GrammarType grammar ) (inherits from SFXXMLDOMParser)
Set the grammar used by this parser.
Void SetIgnoreAnnotations( BoolConst state ) (inherits from SFXXMLDOMParser)
SetIgnoreAnnotations( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to ignore annotations.
Void SetLoadExternalDTD( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to load the external DTD.
Void SetSchemaLocation( SFXAnsiStringConstRef name ) (inherits from SFXXMLDOMParser)
Set the XSD file of the XML document with XML Schema.
Void SetValidationDTD( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to validate the XML document with DTD.
Void SetValidationSchema( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to validate the XML document with XML Schema.
Protected Functions
Void Characters( SFXAnsiStringConstRef string , BoolConst cdataSection = true )
Event function that notifies the CharacterData content of XML document.
Void Comment( SFXAnsiStringConstRef string )
Event function that notifies the Comment content of XML document.
Void EndElement( SFXAnsiStringConstRef uri = SFXAnsiString::EmptyInstance() , SFXAnsiStringConstRef localname = SFXAnsiString::EmptyInstance() , SFXAnsiStringConstRef qname = SFXAnsiString::EmptyInstance() )
Event function that notifies the completion of parsing an element.
Void IgnorableWhitespace( SFXAnsiStringConstRef string )
Event function that notifies the space content of the element.
Void StartElement( const SFXXMLGrammar::XMLELEMENT & elemDecl , SFXXMLGrammar::XMLAttrListConstRef attrList , SFXAnsiStringConstRef uri , SFXAnsiStringConstRef prefix )
Event function that notifies the start of parsing an element.
Void SetGrammar( SFXXMLGrammar::GrammarType grammar ) (inherits from SFXXMLDOMParser)
SetGrammar( SFXXMLGrammar::GrammarType grammar ) (inherits from SFXXMLDOMParser)
Set the grammar used by this parser.
Void SetIgnoreAnnotations( BoolConst state ) (inherits from SFXXMLDOMParser)
SetIgnoreAnnotations( BoolConst state ) (inherits from SFXXMLDOMParser)
Set whether or not to ignore annotations.

SFXXSDDOMParser::SFXXSDDOMParser
Constructor of SFXXSDDOMParser class.
[ public, explicit ]
SFXXSDDOMParser(Void);

SFXXSDDOMParser::~SFXXSDDOMParser
Destructor of SFXXSDDOMParser class.
[ public ]
~SFXXSDDOMParser(Void);

SFXXSDDOMParser::Characters
Event function that notifies the CharacterData content of XML document.
[ protected ]
Void Characters(
    SFXAnsiStringConstRef string    // CharacterData of XML document
    BoolConst cdataSection = true   // whether the string argument is of the CDATASection or not
);

SFXXSDDOMParser::Comment
Event function that notifies the Comment content of XML document.
[ protected ]
Void Comment(
    SFXAnsiStringConstRef string   // comment content of XML document
);

SFXXSDDOMParser::EndElement
Event function that notifies the completion of parsing an element.
[ protected ]
Void EndElement(
    SFXAnsiStringConstRef uri = SFXAnsiString::EmptyInstance()         //  namespace URI of the element, or a null string
    SFXAnsiStringConstRef localname = SFXAnsiString::EmptyInstance()   // local name of the element, or a null string
    SFXAnsiStringConstRef qname = SFXAnsiString::EmptyInstance()       // qualified name of the element, or a null string
);

Reference

SFXXSDDOMParser::StartElement


SFXXSDDOMParser::IgnorableWhitespace
Event function that notifies the space content of the element.
[ protected ]
Void IgnorableWhitespace(
    SFXAnsiStringConstRef string   // space characters
);

SFXXSDDOMParser::Reset
Reset all the internal variables.
[ public ]
Void Reset(Void);

SFXXSDDOMParser::StartElement
Event function that notifies the start of parsing an element.
[ protected ]
Void StartElement(
    const SFXXMLGrammar::XMLELEMENT & elemDecl    // element
    SFXXMLGrammar::XMLAttrListConstRef attrList   // attributes of the element
    SFXAnsiStringConstRef uri                     // namespace URI of the element, or a null string
    SFXAnsiStringConstRef prefix                  // namespace prefix of the element, or a null string
);

Reference

SFXXSDDOMParser::EndElement