Class: HTML
Description
This method is used to add information to the Document Type Definition (DTD) of an XML script. The particular level of information is a line that describes the label (element) and attributes of the data within that label.
Syntax
htmlObject.addElement(String label, String attributes)
Parameters
label |
The label that will contain sub-levels of information in the data section. |
attributes |
Columns or additional levels of information within the label |
Returns
An updated XML formatted string. The information updated is the element part of the DTD of the XML message.
When Became Available
v6.4
Example
type HTML xx = Class.new(“HTML”)
set return = xx.addTitle(“MRPC98”)
set return = xx.addElement(“RECORD”,“ERROR,MORE,DEP”)
____________________________________________________________
The following will be added by the two methods above. The addElement method will only add the line containing the word ELEMENT. It inserts this record before the ]> that was added by the addTitle method.
<XML>
<!DOCTYPE MRPC98[
<!ELEMENT RECORD (ERROR,MORE,DEP)*>
]>