Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## 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`:

> - `CDATA-SECTION`

> - `COMMENT`

> - `DOCUMENT-FRAGMENT`

> - `ELEMENT`

> - `ENTITY-REFERENCE`

> - `PROCESSING-INSTRUCTION`

> - `TEXT`

> The default Subtype will be `ELEMENT`.

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

> Table 19–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
>     ProcessingInstructi
>     on
> | Target | Content excluding the target

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

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