Integration Platform Technologies: Siebel Enterprise Application Integration > Siebel Virtual Business Components > XML Gateway Service >

About Handling White Space


White space is handled by the XML parser while processing the request from the XML Gateway business service. When the white space is part of the XML syntax, it must be discarded by the XML parser and not preserved (passed on to the processing application). If the white space is in any other location (such as in element content within a document), it must be preserved according to the XML specification, because it might have some meaning.

For example:

<mydata>

<mytag>stuff</mytag>

</mydata>

and

<mydata><mytag>stuff</mytag></mydata>

are different to an XML parser.

To preserve white space, use the xml:space attribute with the value preserve, for example:

<mydata xml:space="preserve">

<mytag>stuff and more stuff</mytag>

</mydata>

The value of xml:space applies to all children of the element containing the attribute unless overridden by one of the children.

For more information on white space handling and the xml:space attribute, see Microsoft Developer Network (http://msdn.microsoft.com).

Integration Platform Technologies: Siebel Enterprise Application Integration Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices.