JavaScript Document Manipulation Examples
Get the name of the document
Get the XML of the document currently in the editor
Load a document in to the editor
You can optionally include a Workspace ID and/or View Preferences ID to load with the document