xml-to-text
Converts XML to text
Description
The XML contained in this element will be first converted to text and then processed as text. This is convenient for passing CGI parameters containing SOAP commands. (To use this during a query conversion you will need to use the transform XSL parser that can be associated with a schema.x.element.form.)
Attributes
- async (Boolean default: true) - Asynchronous processing. For parse tags, should the request be enqueued (false) or processed before its next sibling. For other elements, this attribute only makes a difference when they contain asynchronous requests which need to be processed before the element is processed. In this case, when false the element's next sibling will only be processed after the current element, when true Watson™ Explorer won't wait for the current element to be processed before processing its next sibling.
- elt-id (Integer) - Usage: Internal
- max-elt-id (Integer) - Usage: Internal
- execute-acl (Text)
- process (Text) - An XPath determining which of the attributes and/or children will be processed. Currently only "", "*", "@*" and "*|@*" are supported.
- preamble (Any of: utf-8, none default: none)
- pretty (May only be: pretty)
- indent (May only be: indent)
- wrap (May only be: wrap)
- cdata (Any of: avoid, never, allow default: never)
Children
- Use these in the listed order. The sequence may not repeat.
- An unlimited number of XML nodes of any kind can be used in this context.
Examples
Input Example:
<parse url="http://x.com/soap?" action="POST"> <parse-param name="xml"> <xml-to-text> <command a="b"/> <command c="d"/> </xml-to-text> </parse-param> </parse>
Output Example:
<parse url="http://x.com/soap?xml=%3ccommand_a%3d%22b%22_%2f%3e%3ccommand_c%3d%22d%22_%2f%3e" action="POST" ref="0"/>