[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Write-XML is not appending XML into an existing document

  • Thread starter christian.bryan@capita.co.uk
  • Start date
Status
Not open for further replies.
C

christian.bryan@capita.co.uk

Guest
Hi Robin is correct. The documentation is not very clear but you need to create a node in our document to attach the contents of the WRITE-XML to and then append that document to your already created document e.g. /* o-doc is my existing XML document */ /* lv-TempNode is created here as a node of o-Doc */ /* Parent node created here as a child node of o-Doc. */ /* This the temp store from the Import-node data */ o-doc:CREATE-NODE(lv-TempNode,"Temp","Element"). DATASET HS_myDataSet:WRITE-XML("HANDLE", lv-TempNode, FALSE, ?, ?, FALSE, FALSE). /* Append the temp node that has the DATASET to our parent node */ lv-ParentNode:APPEND-CHILD(lv-TempTenancyNode). /* The dataset is now in o-Doc as a child of lv-ParentNode */

Continue reading...
 
Status
Not open for further replies.
Top