Progress
External Program
Interfaces
Namespace Processing
Namespace processing is enabled by default.
To disable it, set SUPPRESS-NAMESPACE-PROCESSING to TRUE.
XML Namespace processing is potentially complex. But here is a summary of the behavior to expect from a Progress SAX application.
Namespace Declarations
An XML document that uses namespaces has one or more Namespace declarations, which appear as attributes of elements. A namespace declaration might appear as an attribute of any element; frequently the document element (the one that encloses all of the other elements) has the namespace declaration or declarations.
A namespace declaration associates a prefix with a URI. Once associated, the prefix might appear with element names, attributes names, or both, to distinguish the names from identical names that might mean something else. For example, an XML element whose name is “memory” might mean completely different things, and have different valid attributes, depending on whether it appears in a computer inventory or in a psychological report. You can distinguish the uses by having a computer-inventory namespace and a psychological-report namespace.
In the SAX2 interface, XML Namespaces affect the values of the parameters of StartElement and EndElement, and the attribute data in the attributes parameter of StartElement. There can be slight variations in the way that Progress SAX handles namespace processing.
Namespace Processing’s Effects
In Progress SAX, Namespace processing affects the behavior of:
Table 12–5 describes the effect of Namespace processing on StartElement and EndElement.
Table 12–6 describes the effect of Namespace processing on Attributes data.
For more information on Namespace processing, see the reference entry for the SUPPRESS-NAMESPACE-PROCESSING attribute in the Progress Version 9 Product Update Bulletin .
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |