| java.lang.Object de.schlund.pfixxml.util.Xml
Field Summary | |
final static Logger | CAT |
Method Summary | |
public static Document | createDocument() | public static DocumentBuilder | createDocumentBuilder() | public static XMLReader | createXMLReader() | public static XsltVersion | getXsltVersion(Node node) | public static Document | parse(XsltVersion xsltVersion, Document doc) Convert the document implementation which is used for write-access
by
SPDocument to the document implementation which is used
by the XSLTProcessor. | public static Document | parse(XsltVersion xsltVersion, FileResource file) | public static Document | parse(XsltVersion xsltVersion, File file) Create a document from a sourcefile in the filesystem. | public static Document | parse(XsltVersion xsltVersion, Source input) | public static Document | parseMutable(FileResource file) | public static Document | parseMutable(File file) | public static Document | parseMutable(String filename) | public static Document | parseMutable(InputStream src) | public static Document | parseMutable(InputSource src) | public static Document | parseString(XsltVersion xsltVersion, String str) | public static Document | parseStringMutable(String text) | public static String | serialize(Node node, boolean pp, boolean decl) | public static void | serialize(Node node, FileResource file, boolean pp, boolean decl) | public static void | serialize(Node node, File file, boolean pp, boolean decl) | public static void | serialize(Node node, String filename, boolean pp, boolean decl) | public static void | serialize(Node node, OutputStream dest, boolean pp, boolean decl) | public static String | stripElement(String ele) |
CAT | final static Logger CAT(Code) | | |
parse | public static Document parse(XsltVersion xsltVersion, Document doc)(Code) | | Convert the document implementation which is used for write-access
by
SPDocument to the document implementation which is used
by the XSLTProcessor. Note: Currently we convert here from a mutable
DOM implementation to an imutable TinyTree(saxon).
Parameters: doc - the document as source for conversion(mostly a Node implementationwhen using xerces) a document as result of conversion(currently saxons TinyDocumentImpl) throws: Exception - on all errors |
serialize | public static String serialize(Node node, boolean pp, boolean decl)(Code) | | Parameters: pp - pretty print |
serialize | public static void serialize(Node node, File file, boolean pp, boolean decl) throws IOException(Code) | | Parameters: pp - pretty print |
serialize | public static void serialize(Node node, String filename, boolean pp, boolean decl) throws IOException(Code) | | Parameters: pp - pretty print |
|
|