PureBasic
PureBasic
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 PureBasic Downloads
IncludeFile "CkXml.pb"
Procedure ChilkatExample()
xml.i = CkXml::ckCreate()
If xml.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
CkXml::setCkTag(xml, "abc")
CkXml::setCkContent(xml, "123")
Debug CkXml::ckGetXml(xml)
CkXml::ckDispose(xml)
ProcedureReturn
EndProcedure