txt2xml

Easily parse text in the XML format
Download

txt2xml Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD
  • Price:
  • FREE
  • Publisher Name:
  • Steve Meyfroidt
  • Publisher web site:
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 506 KB

txt2xml Tags


txt2xml Description

Easily parse text in the XML format txt2xml is a free and open source, simple Java library for parsing arbitrarily structured text input into well-formed XML output as SAX, DOM, JDOM, or through an OutputStream. txt2xml is useful in integration problems in which a variety of text formats need to be handled in a uniform manner: XML is a reasonable common ground since it is well supported by APIs and tooling.The strategy in txt2xml is to allow "Processors" to parse the input, writing XML as they go, and allowing matched fragments to be further processed by sub-processors. Processors can be configured to repeat across an entire input text, or to match only once before passing control to a subsequent Processor.There is a simple configuration mechanism that allows a conversion to be easily configured in an XML document: see below for examples.Output of the resulting XML is handled by Drivers in a number of ways including creation of a DOM or JDOM DOcument, driving a SAX ContentHandler, or output as text to an OutputStream. Requirements: · Java 1.4 or later What's New in This Release: · Added some unit tests and fixed bugs. · Added command line application "Batch". · Bug fixes to close streams after use. · Fixed javadoc to not throw warnings with javadoc v1.3. · Removed "sequence" code completely: elements are implicitly ordered so no need for this. · Removed "elementChars" code completely: could be implemented in a custom Processor if needed. · Refactor of internals of Processor: public API similar but custom subclasses will need rework for this version. · Fixed up RegexMatchProcessor to work properly. · Fixed next Processor handling so it works!


txt2xml Related Software