FDO .NET API Reference Feature Data Objects
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OSGeo::FDO::Common::Xml::XmlCopyHandler Class Reference

Inherits OSGeo::FDO::Common::Xml::XmlSaxHandler.

Inheritance diagram for OSGeo::FDO::Common::Xml::XmlCopyHandler:

[legend]
List of all members.

Detailed Description

XmlCopyHandler can be used to copy a set of elements from one XML document to another. It can be created and set as the SAX Handler for an XML Reader on the document to copy from. An XML Writer to the document to copy to is passed to one of the Create methods below. The elements to copy will be inserted at the XML writer's current position.


Public Member Functions

 OSGeo::FDO::Common::Xml::XmlCopyHandler (OSGeo::FDO::Common::Xml::XmlWriter *writer, String *resourceLocation, String *name, String *qualifiedName, XmlAttributeCollection *attributes, DictionaryElementCollection *namespaces)
 Constructs a Copy Handler. When attached (as the SAX Handler) to a XmlReader, this object copies the current element being parsed, plus all of its sub-elements.
 XmlCopyHandler (System::IntPtr unmanaged, System::Boolean autoDelete)
 Constructs a CopyHandler based on an unmanaged instance of the object.
 XmlCopyHandler (OSGeo::FDO::Common::Xml::XmlWriter *writer)
 Constructs a Copy Handler. When attached (as the SAX Handler) to an XmlReader, this object copies all sub-elements of the current element being parsed.

Constructor & Destructor Documentation

OSGeo::FDO::Common::Xml::XmlCopyHandler::XmlCopyHandler OSGeo::FDO::Common::Xml::XmlWriter writer  ) 
 

Constructs a Copy Handler. When attached (as the SAX Handler) to an XmlReader, this object copies all sub-elements of the current element being parsed.

Parameters:
writer Input the sub-elements are written to this XML writer.
Returns:
Returns XmlCopyHandler

OSGeo::FDO::Common::Xml::XmlCopyHandler::XmlCopyHandler System::IntPtr  unmanaged,
System::Boolean  autoDelete
 

Constructs a CopyHandler based on an unmanaged instance of the object.

Parameters:
unmanaged Input A Pointer to the unmanaged object.
autoDelete Input Indicates if the constructed object should be automatically deleted once it no longer referenced.

Member Function Documentation

OSGeo::FDO::Common::Xml::XmlCopyHandler::OSGeo::FDO::Common::Xml::XmlCopyHandler OSGeo::FDO::Common::Xml::XmlWriter writer,
String *  resourceLocation,
String *  name,
String *  qualifiedName,
XmlAttributeCollection attributes,
DictionaryElementCollection namespaces
 

Constructs a Copy Handler. When attached (as the SAX Handler) to a XmlReader, this object copies the current element being parsed, plus all of its sub-elements.

Parameters:
writer Input the sub-elements are written to this XML writer.
resourceLocation Input current element's Universal Resource Indicator
name Input the unqualified name of the current element (doesn't include namespace)
qualifiedName Input the qualified name of the current element(includes namespace)
attributes Input the attributes for the current element.
Note: If the current element will become the root element in the destination document, the caller is responsible for including all required xmlns: namespace declarations in the atts list.
Parameters:
namespaces Input list of XML namespace declarations to write to the destination document.
Returns:
Returns XmlCopyHandler

Comments or suggestions? Send us feedback.