I'm planning to write a SAX2 XML parser and I would like to support as many standard options as I can. However, I'm really scratching my head trying to understand what the http://xml.org/sax/properties/xml-string property is supposed to be. The documentation (from the JavaDocs for the org.xml.sax package) reads:
Readable only during a parser callback, this exposes a TBS chunk of characters responsible for the current event.
What on Earth is a "TBS chunk"?
I've tried Googling various combinations of "tbs chunk", "sax", and "xml-string" but I'm not finding any useful results. Mostly it's pages about how to parse a chunk of XML using SAX. Surely someone has better Google-fu than I do?
Addendum: TBS could be the acronym for "To Be Specified" (https://www.allacronyms.com/TBS).
In that case a "TBS chunk of characters" would translate to a "to be specified chunk of characters" - i.e. nobody ever cared to specify what the value of this property should be.
The JDK contains several class that implement parser configurations:
DOMConfigurationImplBasicParserConfigurationXML11ConfigurationXML11DTDConfigurationXML11NonValidatingConfigurationAnd all of these classes specify the same behaviour for the
xml-stringproperty:The default SAX parsers of Java do not support this property.
If you still want to support it I found the following traces of the "xml-string" property in Python: