User Guide

File manipulation functions 311
Example
if(dreamweaver.canExportTemplateDataAsXML())
{
dreamweaver.exportTemplateDataAsXML("file:///c|/dw_temps/
mytemplate.txt")
}
dreamweaver.getDocumentDOM()
Availability
Dreamweaver 2.
Description
Provides access to the objects tree for the specified document. After the tree of objects returns
to the caller, the caller can edit the tree to change the contents of the document.
Arguments
{sourceDoc}
The sourceDoc argument must be "document", "parent", "parent.frames[number]",
"parent.frames['frameName']", or a URL. The sourceDoc value defaults to
"document" if you do not supply a value. These argument values have the following
meanings:
The document value specifies the document that has focus and contains the
current selection.
The parent value specifies the parent frameset (if the currently selected document is
in a frame).
The parent.frames[number] and parent.frames['frameName'] values specify a
document that is in a particular frame within the frameset that contains the
current document.
If the argument is a relative URL, it is relative to the extension file.
Returns
The JavaScript document object at the root of the tree.
NOTE
If the argument is "document", the calling function must be the applyBehavior(),
deleteBehavior(), objectTag() function, or any function in a command or
Property inspector file that can perform edits to the document.
000_DW_API_Print.book Page 311 Wednesday, July 20, 2005 11:58 AM