procedure save(doc:xmldoc, fname:text)
procedure save(doc:xmldoc, n:integer, fname:text)
Document to save
Node number to use as root node (default: 0)
Destination file name
This example shows the two versions of this procedure.
! Save XML document to file 'results.xml'
! Display a subtree on screen
Pers:= getnode(DB, "personnelList/region/employee[@id='T345']")
save(DB, Pers, "")
When providing an alternative root node, only the specified part of
the document tree is exported without any XML header.
The document is formatted according to the indentation mode
and its associated settings (see setindentmode
XML control characters are encoded (see xmlencode
but no character conversion is performed (i.e.
property of the document as stated via setencoding
is saved but not applied to the text of the document).
If you have any comments or suggestions about these pages,
please send mail to firstname.lastname@example.org.
© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.