Methods
parse(objectDOM) → {JSON}
Parses the XML objectDOM into a JSON object to be set on the model.
If this EMLText element contains markdown, then parse it. Otherwise, use
the EMLText 211 parse() method.
Parameters:
Name | Type | Description |
---|---|---|
objectDOM |
Element | XML Element to parse |
Returns:
The literal object to be set on the model later
- Type
- JSON
updateDOM(textType) → {XMLElement}
Makes a copy of the original XML DOM and updates it with the new values from the model
Parameters:
Name | Type | Description |
---|---|---|
textType |
string | a string indicating the name for the outer xml element (i.e. content). Used in case there is no exisiting xmlDOM. |
Returns:
- Type
- XMLElement