Progress
External Program
Interfaces


The New 4GL Objects and Handles

DOM Node Interfaces As Subtypes

Since it is necessary to be able to use some of the other specialized interfaces as well as the simplified interface, the DOM objects that have these specialized interfaces are implemented as Subtypes of the Progress object.

The Progress 4GL supports the following interfaces as Subtypes on the X-NODEREF:

The default Subtype will be ELEMENT.

Table 11–2 shows the “simplified” DOM Node interface nodeNames and nodeValues.

Table 11–2: Node Names and Values 
Type
nodeName
nodeValue
DocumentType
Document type name
Null
DocumentFragment
#document-fragment
Null
Element
Tag name
Null
EntityReference
Name of entity referenced
Null
Text
#text
Content of the text node
CDATASection
#cdata-section
Content of the CDATA-section
Comment
#comment
Content of the comment
ProcessingInstruction
Target
Content excluding the target

The Progress 4GL NAME attribute will be used to return the nodeName, while a new NODE-VALUE character attribute will return or set the node’s nodeValue.


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