XSDURL Property

Description

This property specifies the XML Schema Document(s) to be used with an instance of EditLive! for XML. The schema document(s) specify the data structure and data restrictions for the form.

Note

This property cannot be used with the Visual Designer. To set the XSD for use with the Visual Designer the XSDAsText property must be used.

Syntax

JavaScript

setXSDURL(strXSDURL);

Parameters

strXSDURL

A string specifying a list of XML Schema Documents (XSDs) to be used within this instance of EditLive! for XML. When specifying multiple XSDs they should be separated by a single whitespace character.

Examples

Example 16.33. XSDURL Property Example Scripting

The following example specifies three XSDs for use with an instance of EditLive! for XML.

JavaScript

editlive_js.setXSDURL = "../XSDs/xsdOne.xsd 
           ../XSDs/xsdTwo.xsd http://server/XSDs/xsdThree.xsd";

Remarks

The URL(s) specified may be relative or absolute.

When using relative URLs the URLs will be considered as being relative to the URL of the page in which EditLive! for XML is embedded.