FDO API Reference | Feature Data Objects |
#include <CopyHandler.h>
Inherits FdoDisposable, and FdoXmlSaxHandler.
Inheritance diagram for FdoXmlCopyHandler:
Definition at line 32 of file CopyHandler.h.
Static Public Member Functions | |
FDO_API_COMMON FdoXmlCopyHandler * | Create (FdoXmlWriter *writer, FdoString *uri, FdoString *name, FdoString *qName, FdoXmlAttributeCollection *atts, FdoDictionary *namespaces=NULL) |
Constructs a Copy Handler. When attached (as the SAX Handler) to a FdoXmlReader, this object copies the current element being parsed, plus all of its sub-elements. | |
FDO_API_COMMON FdoXmlCopyHandler * | Create (FdoXmlWriter *writer) |
Constructs a Copy Handler. When attached (as the SAX Handler) to a FdoXmlReader, this object copies all sub-elements of the current element being parsed. | |
Protected Member Functions | |
virtual FDO_API_COMMON FdoBoolean | AttHasNs (FdoString *uri, FdoString *name, FdoString *qName, FdoXmlAttribute *att) |
This function is called before each attribute is copied to the destination document. It determines whether the attribute value references a qualified XML element name. If it does, then the namespace prefix for the value is converted to the equivalent prefix in the destination document. | |
FDO_API_COMMON | FdoXmlCopyHandler (FdoXmlWriter *writer, FdoString *uri, FdoString *name, FdoString *qName, FdoXmlAttributeCollection *atts, FdoDictionary *namespaces=NULL) |
FDO_API_COMMON | FdoXmlCopyHandler (FdoXmlWriter *writer) |
| |
FdoXmlCopyHandler () | |
DOXYGEN-IGNORE | |
FdoStringP | HandleQAtt (FdoStringP uri, FdoStringP localName, FdoStringP prefix, FdoStringP QName) |
void | SetWriter (FdoXmlWriter *writer) |
DOXYGEN-IGNORE | |
void | WriteNamespaces (FdoDictionary *namespaces) |
writes the given set of XML namespaces to the output document | |
void | WriteStartElement (FdoString *uri, FdoString *name, FdoString *qName, FdoXmlAttributeCollection *atts) |
virtual FDO_API_COMMON void | XmlCharacters (FdoXmlSaxContext *, FdoString *) |
Default Sax callback that is called when the FdoXmlReader reads a chunk of simple content for the current element. Does nothing by default. This function may be called multiple times for the same element, if the the content is long. Applications must not make any assumptions about the chunk size or number of chunks for each element. | |
virtual FDO_API_COMMON FdoBoolean | XmlEndElement (FdoXmlSaxContext *, FdoString *, FdoString *, FdoString *qName) |
Default Sax callback that is called when the FdoXmlReader reads the end tag for an XML element in the document. Does nothing. | |
virtual FDO_API_COMMON FdoXmlSaxHandler * | XmlStartElement (FdoXmlSaxContext *, FdoString *, FdoString *name, FdoString *, FdoXmlAttributeCollection *) |
SAX handlers to catch and copy various XML fragments. | |
virtual FDO_API_COMMON | ~FdoXmlCopyHandler () |
|
DOXYGEN-IGNORE
Definition at line 93 of file CopyHandler.h. Referenced by Create(). |
|
|
|
|
|
|
|
This function is called before each attribute is copied to the destination document. It determines whether the attribute value references a qualified XML element name. If it does, then the namespace prefix for the value is converted to the equivalent prefix in the destination document.
|
|
Constructs a Copy Handler. When attached (as the SAX Handler) to a FdoXmlReader, this object copies the current element being parsed, plus all of its sub-elements.
Definition at line 79 of file CopyHandler.h. References FDO_API_COMMON, and FdoXmlCopyHandler(). |
Here is the call graph for this function:
|
Constructs a Copy Handler. When attached (as the SAX Handler) to a FdoXmlReader, this object copies all sub-elements of the current element being parsed.
Definition at line 48 of file CopyHandler.h. References FDO_API_COMMON, and FdoXmlCopyHandler(). |
Here is the call graph for this function:
|
handles an attribute qualified by namespace. Adds namespace declaration to output document if not already there. |
|
DOXYGEN-IGNORE
|
|
writes the given set of XML namespaces to the output document
|
|
General function for writing start of an element. Handles namespace translation, of the element name, between the source and destination documents. |
|
Default Sax callback that is called when the FdoXmlReader reads a chunk of simple content for the current element. Does nothing by default. This function may be called multiple times for the same element, if the the content is long. Applications must not make any assumptions about the chunk size or number of chunks for each element.
Reimplemented from FdoXmlSaxHandler. |
|
Default Sax callback that is called when the FdoXmlReader reads the end tag for an XML element in the document. Does nothing.
Reimplemented from FdoXmlSaxHandler. |
|
SAX handlers to catch and copy various XML fragments.
Reimplemented from FdoXmlSaxHandler. |
Comments or suggestions? Send us feedback. |