Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : SCHEMA-LOCATION attribute
 

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 values can contain Unicode characters. See OpenEdge Development: Internationalizing Applications for more information about Unicode.
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 following format:

Syntax

"namespace1 location1 namespace2 location2 namespace3 location3"
Here is an example assignment to this attribute:
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 attribute 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 previous example could also be achieved invoking 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").