How to: |
Syntax:
com.ibi.preemit.XDEntityRepl
Description:
This preemitter eliminates XML entities (such as <. to < and > to >). It returns an XML formatted document.
Use the Entity Repl Preemitter if one XML document is enclosed inside another XML document using < and > characters, then the user can convert the enclosed XML document to XML representation using entity Repl preemitter.
Parameters:
Parameter | Description |
---|---|
Name | Name of the new Preemitter object definition. |
Description | Description for the new Preemitter object definition. |
The Name and Description pane opens.
Let the input to this channel be a.xml.
<?xml version="1.0" encoding="ISO-8859-1" ?> <eda> <error timestamp="2009-04-02T20:53:55Z"source="Parser" code="3" stage="PARSE">Parser error in XML file: XD[FAIL] cause: 0 subcause: 0 message: Problems parsing XML file: XD[FAIL] cause: 0 subcause: 0 message: Parse failure ®) 3: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. (</c></b><b><c>two</c> </b></a>) <data type="xml"><a><b><c>one</c></b> <b><c>two</c></b></a></data> </error> </eda>
The output obtained is a file with <b> replaced with XML notation <and>. -a.2009-04-29T17_34_41.324Z.xml is:
<?xml version="1.0" encoding="ISO-8859-1" ?> <eda> <response errorcount="0"> <timestamp>2009-04-29T17:34:41Z</timestamp> </response> </eda>
iWay Software |