public class XmlOffsetCorrector extends OffsetCorrector
OffsetCorrector.correctPair(int, int).
This will not work on invalid XML.
Not thread-safe.docText, nonTaggableOffsets, offsetPair, parentChangeIds, parentChangeOffsets, tagInfo| Constructor and Description |
|---|
XmlOffsetCorrector(String docText)
Initialize based on the document text.
|
correctEndOffsetForCloseElement, correctPair, getCloseEndOff, getCloseStartOff, getOpenEndOff, getOpenStartOff, getParentTag, hasNonWhitespace, lookupTag, spansNonTaggable, tagEnclosesOffsetpublic XmlOffsetCorrector(String docText) throws XMLStreamException
docText - non-null XML content.XMLStreamException - If there's a problem parsing the XML.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.