File Information
Library: XSD/Parser
Package: XSDParser
Header: Poco/XSD/Parser/XSDContentHandler.h
Description
The ContentHandler for processing an XML Schema document.
Inheritance
Direct Base Classes: Poco::XML::ContentHandler
All Base Classes: Poco::XML::ContentHandler
Member Summary
Member Functions: characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, loadXSD, processingInstruction, resolveSchemaLocation, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
Inherited Functions: characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
Types
SchemaNSToLocationMap
typedef std::map < std::string, std::string > SchemaNSToLocationMap;
Constructors
XSDContentHandler
XSDContentHandler(
const Poco::URI & schemaLocation,
const SchemaNSToLocationMap & schemaMap
);
Creates the XSDContentHandler. set fixupSchema to false if you include another schema from within another one
Destructor
~XSDContentHandler
virtual ~XSDContentHandler();
Destroys the XSDContentHandler.
Member Functions
characters
void characters(
const XML::XMLChar ch[],
int start,
int length
);
endDocument
void endDocument();
See also: Poco::XML::ContentHandler::endDocument()
endElement
void endElement(
const std::string & uri,
const std::string & localName,
const std::string & qname
);
endPrefixMapping
void endPrefixMapping(
const std::string & prefix
);
ignorableWhitespace
void ignorableWhitespace(
const XML::XMLChar ch[],
int start,
int length
);
loadXSD
static Poco::XSD::Types::Schema::Ptr loadXSD(
const Poco::URI & schemaLocation,
const XSDContentHandler::SchemaNSToLocationMap & schemaMap
);
Loads an XSD file from the given schemaLocation, set fixupSchema to false if you include another schema part, otherwise set it to true.
processingInstruction
void processingInstruction(
const std::string & target,
const std::string & data
);
resolveSchemaLocation
static void resolveSchemaLocation(
Poco::URI & schemaLocation,
const Poco::URI & parentSchemaLocation
);
Resolves and normalizes a schemaLocation URI.
setDocumentLocator
void setDocumentLocator(
const XML::Locator * loc
);
skippedEntity
void skippedEntity(
const std::string & name
);
startDocument
void startDocument();
startElement
void startElement(
const std::string & uri,
const std::string & localName,
const std::string & qname,
const XML::Attributes & attrList
);
startPrefixMapping
void startPrefixMapping(
const std::string & prefix,
const std::string & uri
);