Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIXMLDOMDocumentBuilder
Interface to parse or to create DOM documents.
public virtual CreateDocument( | oDocument) |
public virtual GetDOMImplementation( | oImplementation) |
public virtual GetSupportedOptions( | oOptions) |
Option name | Description | Possible values | Default value |
CATDoValidation | Specifies if validation check is performed during parse | true or false | true |
CATEnableNameSpaces | Specifies if the builder is XML namespace aware | true or false | true (NB: false is not supported by MSXML) |
CATExpandEntityReferences | Specifies if the builder expands entity reference at parse time | true or false | false |
public virtual Parse( | const | iSystemId, | |
oDocument, | |||
const | iOptions | = CATListOfCATUnicodeString(), | |
const | iOptionValues | = CATListOfCATUnicodeString(), | |
const | iEntityResolver | = NULL_var, | |
const | iErrorHandler | = NULL_var) |
Error Class | Error Id | Description |
---|---|---|
XMLParserERR_2100 | Invalid options definition | |
XMLParserERR_2101 | Unsupported option | |
XMLParserERR_2102 | Illegal option value | |
XMLParserERR_2000 | If an error (such as a not well formed XML document) occurs during parse | |
XMLParserERR_2001 | If an I/O error occurs during parse |
public virtual Parse( | const | iInputSource, | |
oDocument, | |||
const | iOptions | = CATListOfCATUnicodeString(), | |
const | iOptionValues | = CATListOfCATUnicodeString(), | |
const | iEntityResolver | = NULL_var, | |
const | iErrorHandler | = NULL_var) |
Error Class | Error Id | Description |
---|---|---|
XMLParserERR_2100 | Invalid options definition | |
XMLParserERR_2101 | Unsupported option | |
XMLParserERR_2102 | Illegal option value | |
XMLParserERR_2000 | If an error (such as a not well formed XML document) occurs during parse | |
XMLParserERR_2001 | If an I/O error occurs during parse |
public virtual Write( | const | iNode, | |
oResult, | |||
const | iOptions | = CATListOfCATUnicodeString(), | |
const | iOptionValues | = CATListOfCATUnicodeString()) |
Option name | Description | Possible values | Default value |
CATExpandEntityReferences | Specifies if the entities references are to be expanded in the generated XML text | true or false | false |
CATEncoding | If the node is a document node, the supplied value will be inserted in the 'encoding' attribute of the XML header Do not specify this attribute if you want the XML parser to autodetect the encoding. | encoding value | empty |
CATSortAttributes | Sorts the attributes of each elements alphabetically. | true or false | false |
CATIndentation | Controls how the output is formatted to produce human-readable indented XML. | A positive or null integer specifying the number of indentation characters to insert before each element | 0 (no identation) |
CATIndentationCharacter | Specifies the indentation character to use when indentation is requested. | A valid indentation character (space or tab) | space |
Error Class | Error Id | Description |
---|---|---|
XMLParserERR_2100 | Invalid options definition | |
XMLParserERR_2101 | Unsupported option | |
XMLParserERR_2102 | Illegal option value |
public virtual WriteToFile( | const | iNode, | |
const | iPath, | ||
const | iOptions | = CATListOfCATUnicodeString(), | |
const | iOptionValues | = CATListOfCATUnicodeString()) |
Option name | Description | Possible values | Default value |
CATExpandEntityReferences | Specifies if the entities references are to be expanded in the generated XML text | true or false | false |
CATEncoding | The encoding to use to write the file. Furthermore if the node is a document node, the supplied value will be inserted in the 'encoding' attribute of the XML header. Note that you should not normally use an empty value since it makes the XML file not portable from one platform to another. However, if you want to edit the XML file with an external, plain text editor which does not support UTF-8 and you do not wish to exchange files, this value can exceptionally be used. | UTF-8, UTF-16 or empty | UTF-8 |
CATSortAttributes | Sorts the attributes of each elements alphabetically. | true or false | false |
CATIndentation | Controls how the output is formatted to produce human-readable indented XML. | A positive or null integer specifying the number of indentation characters to insert before each element | 0 (no identation) |
CATIndentationCharacter | Specifies the indentation character to use when indentation is requested. | A valid indentation character (space or tab) | space |
Error Class | Error Id | Description |
---|---|---|
XMLParserERR_2100 | Invalid options definition | |
XMLParserERR_2101 | Unsupported option | |
XMLParserERR_2102 | Illegal option value |
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.