Class: cXMLDOMDocument
Base document class with Base functions.
Class Hierarchy:
BaseXMLDOMDOCUMENTcXMLDOMDocumentMixins:
cXMLDOMNodeMixin,
Class Definition
Properties
HandlephoTempDomNode
HandlephoTempDomNodeMap
IntegerphPrivateDocumentElement
StringpsDocumentName
Functions and Procedures
BooleanAddExternalSchemaDocument(String sSchema Handle hoSchema)
BooleanAddExternalSchemaFile(String sSchema String sFile)
BasicParseErrorReport()
The following procedure is meant to be overridden by one provided by the developer.
BindXMLInfc(Handle hInfc Handle ByRef hoNode)
bind an xml interface node to the passed XML object. If the
object type is of the wrong type, we will destroy it and recreate it
which is why hoNode is passed byRef.
to use this you'd have to use the lower level private messages to get the
xml interface handles and then bind them to an object. Just like in COM you could
bind these to the same object, which might save some parsing time. This is made private
because the time savings would probably be small and would not justify the extra
complexity.
It is a programming error to pass this a zero handle.
Construct_Object()
HandleCreateDocumentElement(String sTagName)
CreateRootNode is used to set up the first element in a document.
It should only be used when creating new files.
HandleCreateDocumentElementNS(String sNamespace String sTagName)
HandleDocTypeNode()
return the DocType as a document-type object. Returns 0 if no dtd
Access to information from the doc type object is limited. Use get psXML
HandleDocumentElement()
Access to the root node allows for searches and iterations.
The root node is a cNode.
HandleDocumentObject()
Allow Nodes and Node node lists to get the parent document.
ErrorCreatingXMLObject()
IntegerLoadXML(String sXML)
Load an XML from a string. This aguments the C message to ret 1 if Ok and 0 if error.
IntegerLoadXMLDocument()
Load an XML Document. The name of the document is stored in a property
that must be set for this function to work correctly.
IntegerLoadXMLFromAddress(Address pXML)
Load an XML string from an address. This aguments the C message to ret 1 if Ok and 0 if error.
IntegerNodeClassId(Integer iType)
returns the classId for the passed NodeType. This is a good augmentation point. All nodes
within an xml document come here to get a class. So, if you want to augment and return a
different class, just check the node type and return whatever -- else forward
BooleanpbMultipleErrorMessages()
HandlephXMLErrorObject()
StringpsSelectionNamespaces()
IntegerSaveXMLDocument()
Set(String sNamespaces)
Set(Boolean bMultipleErrors)
HandleValidateDocument()