SimXMLDocument
Hierarchy:
This object is derived from:
Methods:
addComment()
Description: Add the given comment as a child of current stack element.
addData()
Description: Add the given text as a child of current stack element.
addHeader()
Description: Add XML header to document.
addNewElement()
Description: Create new element as child of current stack element and push new element on to stack.
addText()
Description: Add the given text as a child of current stack element.
attribute(string)
attributeExists()
Description: Get true if named attribute exists.
attributeF32()
Description: Get attribute value if it exists (float).
attributeS32()
Description: Get attribute value if it exists (int).
clear()
Description: Clear contents of XML document.
clearError()
Description: Clear error description.
elementValue()
Description: Get element value if it exists (string).
firstAttribute()
Description: Obtain the name of the current element's first attribute.
getData()
Description: Gets the text from the current stack element.
getErrorDesc()
Description: Get current error description.
getText()
Description: Gets the text from the current stack element.
lastAttribute()
Description: Obtain the name of the current element's last attribute.
loadFile()
Description: Load file from given filename.
nextAttribute()
Description: Get the name of the next attribute for the current element after a call to .
nextSiblingElement()
Description: Set top element on stack to next element with given name.
parse()
Description: Create document from XML string.
popElement()
Description: Pop last element off of stack.
prevAttribute()
Description: Get the name of the previous attribute for the current element after a call to .
pushChildElement()
Description: Push the child element at the given index onto stack.
pushFirstChildElement()
Description: Push first child element with given name onto stack.
pushNewElement()
Description: Create new element as child of current stack element and push new element on to stack.
readComment()
Description: Returns the comment at the specified index.
removeText()
Description: Remove any text on the current stack element.
reset()
Description: Set this to default state at construction.
saveFile()
Description: Save file to given filename.
setAttribute()
Description: Set attribute of top stack element to given value.
setObjectAttributes()
Description: Set attribute of top stack element to given value.
Inherited Fields:
canSaveDynamicFields
Type: bool
internalName
Type: string
parentGroup
Description: Group hierarchy parent of the object.
Type: SimObjectPtr
class
Description: Script SuperClass of object.
Type: string
superclass
Description: Script Class of object.
Type: string