WebSphere Message Brokers
File: ad06420_
Writer: Neil Dewhurst

Reference topic

This build: July 31, 2007 21:22:33

XML AsIsElementContent

The AsIsElementContent syntax element is a special value element. It is used to precisely control the XML generated in an output message without the safeguards of the Element, Attribute, and Content syntax elements. If you use AsisElementContent, you must ensure that the output message is well-formed XML.

You might choose to use this syntax element if, for example, you want to suppress the normal behavior in which occurrences of ampersand (&), less than (<), greater than (>), double quote ("), and apostrophe (') are replaced by the predefined XML entities &amp;, &lt;, &gt;, &quot;, and &apos;.

The following example illustrates the use of AsisElementContent. The statement:

Set OutputRoot.XMLNS.(XML.Element)Message.(XML.Content) = '<rawMarkup>';

generates the following XML in an output message:

<Message>&lt;rawMarkup&gt;</Message>

However, the statement

Set OutputRoot.XMLNS.(XML.Element)Message.(XML.AsisElementContent) = '<rawMarkup>';

generates the following output message:

<Message><rawMarkup></Message>

This shows that the value of an AsisElementContent syntax element is not modified before it is written to the output message.

Related concepts
Message flows overview
Related tasks
Developing message flows
Related reference
The XML message body
XML element
XML attribute
XML content
XML message body example: elements, attributes, and content
XML CDataSection
XML EntityReferenceStart and EntityReferenceEnd
XML comment
XML ProcessingInstruction
XML BitStream
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:22:33

ad06420_ This topic's URL is: