XML-NODE-TYPE attribute
The XML node type of the buffer-field object, which lets you specify how a buffer field is represented in XML and XML Schema. Valid XML node types are "ATTRIBUTE", "ELEMENT", "HIDDEN", and "TEXT".
Data type: CHARACTER
Access: Readable/Writeable
Applies to: Buffer-field object handle
Table 110 lists the valid XML node types.
The XML node type of a buffer field that represents an array must be either "ELEMENT" or "HIDDEN".
This attribute’s purpose overlaps with the SERIALIZE-HIDDEN attribute. Because of this overlap, the attributes interact as follows:
- The WRITE-XML( ) method always uses the XML-NODE-TYPE attribute value. If you set a value for the XML-NODE-TYPE attribute, it keeps that value regardless of how you set the SERIALIZE-HIDDEN attribute.
- If you do not set the XML-NODE-TYPE attribute and set the SERIALIZE-HIDDEN attribute to TRUE, the AVM sets XML-NODE-TYPE to "HIDDEN".
- If you do not set the XML-NODE-TYPE attribute and set the SERIALIZE-HIDDEN attribute to FALSE, the AVM sets XML-NODE-TYPE to "ELEMENT".
- If you do not set either attribute, the AVM sets XML-NODE-TYPE to "ELEMENT" and sets SERIALIZE-HIDDEN to FALSE.
See also: SERIALIZE-HIDDEN attribute, WRITE-XML( ) method, WRITE-XMLSCHEMA( ) method
OpenEdge Release 10.2B
|