public final class XmlParserStAX extends Object
converter for every occurence of MathML code block
in the input.
Resulting output format depends on the type of input:
<math>), output will consist only of the
converted string without any XML tags
| Constructor and Description |
|---|
XmlParserStAX()
Constructor.
|
public XmlParserStAX()
XMLInputFactory is configured with values:
XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES &rarr trueXMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES &rarr trueXMLInputFactory.IS_COALESCING &rarr trueXMLInputFactory.IS_VALIDATING &rarr falseXMLInputFactory.SUPPORT_DTD &rarr truepublic String parse(@Nonnull String inputString, Locale language) throws UnsupportedLanguageException
inputString - Input.language - Language of conversion.UnsupportedLanguageExceptionpublic File parse(@Nonnull File file, Locale language)
MathMLNode tree is builded and subsequently converted
to string.file - Input XML file.language - Language of conversion.<math> tag replaced
with converted string inside <mathconv> tag.UnsupportedLanguageExceptionCopyright © 2013. All Rights Reserved.