Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## SCHEMA-LOCATION attribute

> Determines the list of namespace/location pairs of an XML Schema file to validate against.

> Data type: CHARACTER

> Access: Readable/Writable

> Applies to: X-document object handle, SAX-reader object handle

> Contains the XML Schema file namespace/location pairs list for the object that the parser is using to validate against. The value pairs are separated by white space.

> The default is an empty string ("").

> The syntax for the list is the same as the attribute `schemaLocation` in an XML document. The first member of each pair is the namespace and the second member is the location where to find to an appropriate XML Schema file. The list is written as pairs of target namespace and locations where each value is separated by white space, using the format below:

>     namespace1 location1 namespace2 location2 namespace3 location3

> Here is an example of this method call:

>     hXdoc:SCHEMA-LOCATION = "http://www.example.com com.xsd
>                                http://www.example.org org.xsd"

> Note that namespace and XML Schema file locations specified programatically with this method take precedence over namespaces or schemas declared in XML documents or imported elements.

> To clear the schema location list set SCHEMA-LOCATION to an empty string ("").

> The above example could also be achieved using the ADD-SCHEMA-LOCATION( ) method twice:

>     hXdoc:ADD-SCHEMA-LOCATION("http://www.example.com", "com.xsd").
>     hXdoc:ADD-SCHEMA-LOCATION("http://www.example.org", "org.xsd").

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095