net.i2p.router.news
Class XMLParser

java.lang.Object
  extended by org.cybergarage.xml.Parser
      extended by org.cybergarage.xml.parser.JaxpParser
          extended by 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

Field Summary
static String TEXT_NAME
           
 
Constructor Summary
XMLParser(I2PAppContext ctx)
           
 
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 org.cybergarage.xml.parser.JaxpParser
parse, parse
 
Methods inherited from class org.cybergarage.xml.Parser
parse, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class JaxpParser
Parameters:
parentNode - null if at top
rank - 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.