Package net.i2p.router.news
Class XMLParser
- java.lang.Object
-
- org.cybergarage.xml.Parser
-
- org.cybergarage.xml.parser.JaxpParser
-
- net.i2p.router.news.XMLParser
-
public class XMLParser extends JaxpParser
Override so that XHTML is parsed correctly. This requires us to maintain mixed text and subnodes and output both.- Since:
- 0.9.17
-
-
Constructor Summary
Constructors Constructor Description XMLParser(I2PAppContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
parse(Node parentNode, Node domNode, int rank)
Modified from UPnP JaxpParserstatic void
toString(StringBuilder buf, Node node)
A replacement for Node.toString(), which does not recognize #text.-
Methods inherited from class org.cybergarage.xml.parser.JaxpParser
parse, parse
-
-
-
-
Field Detail
-
TEXT_NAME
public static final String TEXT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLParser
public XMLParser(I2PAppContext ctx)
-
-
Method Detail
-
parse
public Node parse(Node parentNode, Node domNode, int rank)
Modified from UPnP JaxpParser- Overrides:
parse
in classJaxpParser
- Parameters:
parentNode
- null if at toprank
- parse level, only for debug- Returns:
- the parsed node, or the parent node, unused except at top level
-
toString
public static void toString(StringBuilder buf, Node node)
A replacement for Node.toString(), which does not recognize #text.
-
-