net.sf.saxon.om
Class AllElementStripper
- Receiver, Result
public class AllElementStripper
The AllElementStripper refines the Stripper class to do stripping of
all whitespace nodes in a document
attribute, characters, endElement, getAnother, getStripAll, isSpacePreserving, isSpacePreserving, open, setPipelineConfiguration, setStripAll, setXPathContext, startElement |
append, attribute, characters, close, comment, endDocument, endElement, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, startElement |
AllElementStripper
public AllElementStripper()
Default constructor for use in subclasses
isSpacePreserving
public byte isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types
- isSpacePreserving in interface Stripper
nameCode - identifies the element being tested
- STRIP_DEFAULT: strip spaces unless xml:space tells you not to.
isSpacePreserving
public byte isSpacePreserving(NodeInfo element)
Decide whether an element is in the set of white-space preserving element types.
This version of the method is useful in cases where getting the namecode of the
element is potentially expensive, e.g. with DOM nodes.
- isSpacePreserving in interface Stripper
element - Identifies the element whose whitespace is possibly to
be preserved