Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.domsync.core
Class DOMUtil

java.lang.Object
  extended by org.nuxeo.ecm.platform.domsync.core.DOMUtil

public class DOMUtil
extends java.lang.Object

Author:
Max Stepanov

Method Summary
static java.lang.String computeNodeXPath(org.w3c.dom.Node base, org.w3c.dom.Node node)
           
static java.lang.String dumpTree(org.w3c.dom.Node node)
           
static org.w3c.dom.Node findNodeByXPath(org.w3c.dom.Node base, java.lang.String xpath)
           
static java.lang.String getElementOuterNoChildren(org.w3c.dom.Element element)
           
static org.w3c.dom.Node getNodeAtPosition(org.w3c.dom.Node parent, int offset)
           
static int getNodePosition(org.w3c.dom.Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeNodeXPath

public static java.lang.String computeNodeXPath(org.w3c.dom.Node base,
                                                org.w3c.dom.Node node)

findNodeByXPath

public static org.w3c.dom.Node findNodeByXPath(org.w3c.dom.Node base,
                                               java.lang.String xpath)

getNodeAtPosition

public static org.w3c.dom.Node getNodeAtPosition(org.w3c.dom.Node parent,
                                                 int offset)

getNodePosition

public static int getNodePosition(org.w3c.dom.Node node)

getElementOuterNoChildren

public static java.lang.String getElementOuterNoChildren(org.w3c.dom.Element element)

dumpTree

public static java.lang.String dumpTree(org.w3c.dom.Node node)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.