3. System Classes : ButtonField Class : XMLDocument Class
 
Share this page                  
XMLDocument Class
XMLDocument Attributes
Attribute
Data Type
Description
Inherited
From
ClassName
varchar(32)
Gives the name of an object's actual type (as opposed to its declared type) (R)
Object
ClientData
Object
Provides a way to associate data with an object (RW)
Object
ErrorText
varchar(2000)
Contains the error message of the last method invocation (R)
Defined
InstanceIdentifier
integer
Contains a value that uniquely identifies an instance of an allocated object (R)
Object
InstanceReferences
integer
Contains the current number of references to the object (R)
Object
ParsedXMLEncoding
varchar(20)
Is the encoding attribute of the last XML document parsed (R)
Defined
ParsedXMLStandalone
varchar(3)
Is the encoding attribute of the last XML document parsed (R)
Defined
ParsedXMLVersion
varchar(5)
Is the version attribute of the last XML document parsed (R)
Defined
RootElement
XMLElement
Is the root element of the XML document (RW)
Defined
 
XMLDocument Methods
Method
Return
Value
Description
Inherited From
AbortWrite()
integer
Aborts writing to the file previously opened by WriteStartDocument()
Defined
Duplicate()
Object
Makes a duplicate of the object, placing a reference to the new object in a reference variable
Object
GetAttribute
(
attributename = byref(variable)
{,attributename = byref(variable)})
integer
Gets the values of any number of attributes for the object
Object
IsA
(class =
classname)
integer
Returns TRUE if the object is of the same class as, or one of the subclasses of, the class specified by classname
Object
IsValidXMLName(name = varchar(256))
integer
Checks whether the given name is a valid XML identifier name that can be used as a name of an XMLAttribute or XMLElement
Defined
ParseString(string = StringObject
[, validateschema = integer
[, schemacache = XMLSchemaCache]])
integer
Parses the string and sets the RootElement attribute representing the tree-based XML document
Defined
ParseURL(urllocation = varchar(256)
[, validateschema = integer
[, schemacache = XMLSchemaCache]])
integer
Parses the given URL location or file name and sets the RootElement attribute representing the tree-based XML document
Defined
SetAttribute
(
attributename = value
{,attributename = value})
integer
Sets any number of attributes for the object
Object
WriteCDATA(string = StringObject)
integer
Writes a CDATA section for the current XML element to the file previously opened by WriteStartDocument()
Defined
WriteComment(string = StringObject)
integer
Writes an XML comment to the file previously opened by WriteStartDocument()
Defined
WriteElement(element = XMLElement)
integer
Writes an XMLElement including all its children to the file previously opened by WriteStartDocument()
Defined
WriteEndDocument()
integer
Closes the file previously opened by WriteStartDocument() after writing ending tags for all remaining open XML elements, if any
Defined
WriteEndElement()
integer
Writes the ending tag for the current XML element
Defined
WriteProcessingInstruction(
target = varchar(256),
data = StringObject)
integer
Writes an XML processing instruction to the file previously opened by WriteStartDocument()
Defined
WriteStartDocument(
filename = varchar(256)
[, encoding = integer]
[, indent = integer]
[, standalone = integer]
[, failifexists = integer])
integer
Starts writing an XML document in the given encoding to the given file name
Defined
WriteStartElement(
name = varchar(256)
[, attributes = Array of XML Attribute])
integer
Writes the starting tag for an XML element including its attributes to the file previously opened by WriteStartDocument()
Defined
WriteTextData(
string = StringObject)
integer
Writes text data for the current XML element to the file previously opened by WriteStartDocument()
Defined
WriteToFile(
filename =
varchar(256)
[, encoding = integer]
[, indent = integer]
[, standalone = integer]
[, failifexists = integer])
integer
Writes an XML document and all its tree-based structure starting with the RootElement to the file with the given file name
Defined