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
Method Summary |
Node |
parse(Node parentNode,
Node domNode,
int rank)
Modified from UPnP JaxpParser |
static void |
toString(StringBuilder buf,
Node node)
A replacement for Node.toString(), which does not recognize #text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEXT_NAME
public static final String TEXT_NAME
- See Also:
- Constant Field Values
XMLParser
public XMLParser(I2PAppContext ctx)
parse
public Node parse(Node parentNode,
Node domNode,
int rank)
- Modified from UPnP JaxpParser
- Overrides:
parse
in class JaxpParser
- 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.