| net.sf.saxon.event.Stripper net.sf.saxon.om.AllElementStripper
AllElementStripper | public class AllElementStripper extends Stripper (Code) | | The AllElementStripper refines the Stripper class to do stripping of
all whitespace nodes in a document
author: Michael H. Kay |
AllElementStripper | public AllElementStripper()(Code) | | |
isSpacePreserving | public byte isSpacePreserving(int nameCode)(Code) | | Decide whether an element is in the set of white-space preserving element types
Parameters: nameCode - identifies the element being tested STRIP_DEFAULT: strip spaces unless xml:space tells you not to. |
isSpacePreserving | public byte isSpacePreserving(NodeInfo element)(Code) | | 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.
Parameters: element - Identifies the element whose whitespace is possibly tobe preserved |
|
|