PowerBuilder
PowerBuilder
Setting XML Tag and Content
See more XML Examples
Demonstrates how to set the tag and content of an XML node.The following XML sample code produces this output:
<abc>123</abc>
Chilkat PowerBuilder Downloads
integer li_rc
oleobject loo_Xml
loo_Xml = create oleobject
li_rc = loo_Xml.ConnectToNewObject("Chilkat.Xml")
if li_rc < 0 then
destroy loo_Xml
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Xml.Tag = "abc"
loo_Xml.Content = "123"
Write-Debug loo_Xml.GetXml()
destroy loo_Xml