setindentskip
Purpose
Synopsis
procedure setindentskip(doc:xmldoc, skip:integer)
Arguments
|
doc
|
Document to use
|
|
skip
|
Number of spaces to add for each indentation (at least 1; default is 2)
|
Example
This code reads in a document and displays its contents on screen applying automatic formatting with single space indentation and increased line length.
declarations
DB: xmldoc
end-declarations
! Reading data from an XML file
load(DB, "refexample.xml")
! Set indentation mode for XML output (default after load: MANUAL)
setindentmode(DB, XML_AUTO)
! Set smaller indentation skip than default
setindentskip(DB, 1)
! Increase default line length
setlinelen(DB, 80)
! Display document contents on screen
save(DB, "")
Further information
When the document is formatted automatically (see
setindentmode) the number of spaces specified by this procedure is added to the current margin each time a new indent step is created.
Related topics
Module
© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
