setXMLURL Property

Description

This property or the setXML property must be set for Ephox EditLive! for Java to run.  However, these properties are mutually exclusive, so one, NOT both, should be set.

This property specifies the XML configuration file to be used by EditLive! for Java.  This file will customise EditLive! for Java.  The URL for the file, if relative, is relative to the Web page containing the instance of EditLive! for Java.  The easiest way to create an XML configuration file for EditLive! for Java is to use the Ephox EditLive! for Java Configuration Tool.

This property should not be invoked if you wish to dynamically customize EditLive! for Java, instead use the setXML property.  

Syntax

JavaScript object.setXMLURL(strXMLURL)

Parameters

strXMLURL Required.  A string containing the location of the XML configuration file used to configure EditLvie! for Java.

Example

The following code will load the XML configuration file config.xml from the location ../editlivejava/config.xml.  The easiest way to create such a file and make sure that it complies with the EditLive! for Java Configuration File DTD is to use the EditLive! for Java Configuration Tool to generate the file.

var editlivejava1;
editlivejava1 = new EditLiveJava("ELJApplet1","600","400");
editlivejava1.setXMLURL("../editlivejava/config.xml");

Remarks

Using the setXML property to configure EditLive! for Java results in a faster load time for the EditLive! for Java applet than is achieved through the use of the setXMLURL property.  

If you wish to dynamically configure EditLive! for Java please see information about the setXML property.  The setting of this property is mutually exclusive with that of the setXML property.  One of these properties must be set before calling the show method.

See Also