- Code: Select all Expand view
- function Main()
local oXml := TXmlDocument():New(), oNode
oNode = oXml:oRoot:AddBelow( TXmlNode():New( 0, "FORM" ) )
oNode:AddBelow( TXmlNode():New( 0, "CAPTION",, "Hello world" ) )
oNode:AddBelow( TXmlNode():New( 0, "TOP",, "100" ) )
oNode:AddBelow( TXmlNode():New( 0, "LEFT",, "100" ) )
oNode:AddBelow( TXmlNode():New( 0, "WIDTH",, "400" ) )
oNode:AddBelow( TXmlNode():New( 0, "HEIGHT",, "300" ) )
MsgInfo( oXml:oRoot:ToString() )
return nil
Result: