public class XMLUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLUtil.DOMWriter |
| Modifier and Type | Method and Description |
|---|---|
static Locator |
findLocationXPath(InputSource in,
String xpathExpr)
Given an XPath expression, find it's location in a Document
|
protected static String |
getDocTypeName(Document doc) |
static boolean |
isAttrContent(int i)
Test if character can be in attr value
|
protected static void |
printLevel(StringBuffer out,
int level,
String indent) |
static void |
printXML(StringBuffer out,
char msg,
boolean attribute)
Deprecated.
this public method is not expected to be used by schema2beans client
|
static void |
printXML(StringBuffer out,
String msg)
Takes some text to be printed into an XML stream and escapes any
characters that might make it invalid XML (like '<').
|
static void |
printXML(StringBuffer out,
String msg,
boolean attribute) |
static void |
printXML(Writer out,
char msg,
boolean attribute)
Deprecated.
this public method is not expected to be used by schema2beans client
|
static void |
printXML(Writer out,
String msg)
Takes some text to be printed into an XML stream and escapes any
characters that might make it invalid XML (like '<').
|
static void |
printXML(Writer out,
String msg,
boolean attribute) |
static boolean |
reindent(Document doc,
Node node,
int level,
String indent)
Reformat the DOM graph to make it look like pretty XML.
|
static void |
reindent(Document doc,
String indent)
Reformat the DOM graph to make it look like pretty XML.
|
static boolean |
shouldEscape(char c) |
static boolean |
shouldEscape(String s) |
static void |
writeXML(Writer out,
char msg,
boolean attribute)
Deprecated.
this public method is not expected to be used by schema2beans client
|
static void |
writeXML(Writer out,
String msg)
Takes some text to be printed into an XML stream and escapes any
characters that might make it invalid XML (like '<').
|
static void |
writeXML(Writer out,
String msg,
boolean attribute) |
public static void printXML(StringBuffer out, String msg)
public static void printXML(StringBuffer out, String msg, boolean attribute)
public static void printXML(StringBuffer out, char msg, boolean attribute)
public static void writeXML(Writer out, String msg) throws IOException
IOExceptionpublic static void writeXML(Writer out, String msg, boolean attribute) throws IOException
IOExceptionpublic static void writeXML(Writer out, char msg, boolean attribute) throws IOException
IOExceptionpublic static boolean shouldEscape(char c)
public static boolean shouldEscape(String s)
public static void printXML(Writer out, String msg) throws IOException
IOExceptionpublic static void printXML(Writer out, String msg, boolean attribute) throws IOException
IOExceptionpublic static void printXML(Writer out, char msg, boolean attribute) throws IOException
IOExceptionpublic static void reindent(Document doc, String indent)
doc - The Document to create new TextNodes from.indent - The String used to indent per levelpublic static boolean reindent(Document doc, Node node, int level, String indent)
doc - The Document to create new TextNodes from.node - The top of the tree to reindent from.indent - The String used to indent per levellevel - How far in to reindentprotected static void printLevel(StringBuffer out, int level, String indent)
public static Locator findLocationXPath(InputSource in, String xpathExpr) throws IOException, SAXException
IOExceptionSAXExceptionpublic static boolean isAttrContent(int i)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.