BrightSign Object Reference Manual (FW 5.1) User Manual
Page 41

33
root.SetName("myroot")
root.AddAttribute("key1","value1")
root.AddAttribute("key2","value2")
ne=root.AddBodyElement()
ne.SetName("sub")
ne.SetBody("this is the sub1 text")
ne=root.AddBodyElement()
ne.SetName("subelement2")
ne.SetBody("more sub text")
ne.AddAttribute("k","v")
ne=root.AddElement("subelement3")
ne.SetBody("more sub text 3")
root.AddElementWithBody("sub","another sub (#4)")
PrintXML(root, 0)
print root.GenXML(false)
Interfaces: ifXMLElement
The ifXMLElement interface provides the following:
•
GetBody() As Object
•
GetAttributes() As Object
•
GetName() As String
•
GetText() As String
•
GetChildElements() As Object
•
GetNamedElements(a As String) As Object
•
GetNamedElementsCi(a As String) As Object
This manual is related to the following products: