Okapi Framework - FiltersXML Stream Filter (BETA) |
|
If you are using an Okapi Tool after the M9 release, you should be using the wiki online help:
http://www.opentag.com/okapi/wiki/index.php?title=XML_Stream_Filter
This filter allows you to process XML documents.
It uses an XML stream parser, which allows to process much larger documents than a DOM-based parser.
This filter is implemented in the class
net.sf.okapi.filters.xmlstream.XMLStreamFilter of the Okapi library.
Remember that XML documents without an XML declaration may be read incorrectly if the encoding of the document is not UTF-8, UTF-16 or UTF-32.
The filter decides which encoding to use for the input document using the following logic:
If the output encoding is UTF-8:
If the original document had an XML encoding declaration it is updated, if it did not, one is automatically added.
The type of line-breaks of the output is the same as the one of the original input.
Under Construction