Skip to content

psDocumentName - cXMLDOMDocument

The property for the document name

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String psDocumentName
Access Type Syntax
Read Access: Get psDocumentName to StringVariable
Write Access: Set psDocumentName to StringVariable/Value

Description

psDocumentName determines the document name and is used by the LoadXmlDocument and SaveXmlDocument methods.

The name may be a file name or a URL.

Example

// create the xml document object
Object oXML is a cXmlDomDocument
End_Object

// set the document name and load it
Set psDocumentName of oXML to "http://localhost/xml/customer.xml"
Get LoadXmlDocument of oXML to iOk

// Do Stuff
Send ProcessThisObject 

// Save XML document with a new name
Set psDocumentName of oXML to ".\MyXmlDocs\NewCustomer.xml"
Get SaveXmlDocument of oXML to bError

// destroy the XML object
Send Destroy of oXML

See Also

LoadXmlDocument | SaveXmlDocument