org.exoplatform.social.common.xmlprocessor
Class DOMParser
java.lang.Object
org.exoplatform.social.common.xmlprocessor.DOMParser
public class DOMParser
- extends Object
DOMParser utility
- Author:
- Ly Minh Phuong - http://phuonglm.net
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMENTPATTERN
public static final Pattern COMMENTPATTERN
TAGSTARTPATTERN
public static final Pattern TAGSTARTPATTERN
TAGCLOSEPATTERN
public static final Pattern TAGCLOSEPATTERN
SELFTCLOSETAGPATTERN
public static final Pattern SELFTCLOSETAGPATTERN
ATTRIBUTESPATTERN
public static final Pattern ATTRIBUTESPATTERN
DOMParser
public DOMParser()
createDOMTree
public static Node createDOMTree(List<String> xmlTokens)
- Creates the XML DOM tree from XML token List tree.
- Parameters:
xmlTokens - The HTML token array.
- Returns:
- TreeNode contain the content parsed from token list.
createDOMTree
public static Node createDOMTree(Node currentNode,
List<String> xmlTokens)
- Creates the XML DOM tree from XML token List tree as childNodeList of currentNode.
- Parameters:
currentNode - The Node to add childNode to.xmlTokens - The HTML token array
- Returns:
- TreeNode contain the content parsed from token list
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.