public class XDMUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XDMUtil.ComparisonCriteria |
class |
XDMUtil.XDElementIdentity |
class |
XDMUtil.XDUDiffFinder |
Modifier and Type | Field and Description |
---|---|
static String |
NS_PREFIX |
static String |
SCHEMA_LOCATION |
static String |
XML_PROLOG |
Constructor and Description |
---|
XDMUtil()
Constructor for XDMUtil
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPrettyText(Node txt) |
List<Difference> |
compareXML(String xml1,
String xml2,
XDMUtil.ComparisonCriteria criteria) |
List<Difference> |
compareXML(String firstDoc,
String secondDoc,
XDMUtil.ComparisonCriteria type,
boolean filterWhiteSpace) |
static void |
filterAttributeOrderChange(List<Difference> diffs) |
static void |
filterSchemaLocationDiffs(List<Difference> diffs) |
static int |
findPosition(Node n) |
static boolean |
isWhitespaceOnly(String tn) |
String |
prettyPrintXML(String doc,
String indentation) |
static void |
removePseudoAttrPosChanges(List<Difference> diffs) |
static boolean |
removeSchemaLocationAttrDiffs(Change c) |
public static final String NS_PREFIX
public static final String SCHEMA_LOCATION
public static final String XML_PROLOG
public String prettyPrintXML(String doc, String indentation) throws UnsupportedEncodingException, IOException, BadLocationException
public List<Difference> compareXML(String xml1, String xml2, XDMUtil.ComparisonCriteria criteria) throws Exception
Exception
public List<Difference> compareXML(String firstDoc, String secondDoc, XDMUtil.ComparisonCriteria type, boolean filterWhiteSpace) throws BadLocationException, IOException
BadLocationException
IOException
public static boolean checkPrettyText(Node txt)
public static boolean isWhitespaceOnly(String tn)
public static int findPosition(Node n)
public static void removePseudoAttrPosChanges(List<Difference> diffs)
public static void filterAttributeOrderChange(List<Difference> diffs)
public static void filterSchemaLocationDiffs(List<Difference> diffs)
public static boolean removeSchemaLocationAttrDiffs(Change c)