Removal of white space from XML data retrieved from a database may amount
to data corruption. Yet such removal is required in XML data
normalization by XML parsers, and is also frequently carried out via one
or more optional parser features. Safeguards provided herein protect XML
data from such normalization and white space removal when formulating a
response in a database. When delivering an XML fragment in response to a
client request, an XML document's white space handling rules may be
ascertained. Any ignorable white space in the XML document may be
discarded, and any remaining white space may be preserved.