| java.lang.Object org.sakaiproject.tool.assessment.qti.util.XmlUtil
XmlUtil | final public class XmlUtil (Code) | | Copyright: Copyright (c) 2005
Organization: Sakai Project
author: palcasi author: mods: author: Rachel Gollub rgollub@stanford.edu author: Ed Smiley esmiley@stanford.edu version: $Id: XmlUtil.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $ |
createDocument | public static Document createDocument()(Code) | | Create document object
Document |
createDocument | public static Document createDocument(String xmlString)(Code) | | Create document object from XML string
Document |
createTransformer | public static Transformer createTransformer(Document stylesheet)(Code) | | Create a transformer from a stylesheet
Parameters: stylesheet - Document the Transformer |
createTransformer | public static Transformer createTransformer(DOMSource source)(Code) | | Create a transformer from a stylesheet
Parameters: source - DOMSource the Transformer |
getDOMString | public static String getDOMString(Node node)(Code) | | Get a textual representation of a Node.
Parameters: node - The Node the document in a text string |
readDocument | public static Document readDocument(ServletContext context, String path)(Code) | | Read document from ServletContext/context path
Parameters: context - ServletContext Parameters: path - path Document |
readDocument | public static Document readDocument(String path)(Code) | | Read document from within spring context path
Parameters: path - path Document |
readDocument | public static Document readDocument(String path, boolean trim)(Code) | | This more forgiving version skips blank lines if trim = true
Otherwise it does a direct parse of the file.
Parameters: path - file path Parameters: trim - trim blank lines true/false |
transformDocument | public static Document transformDocument(Document document, Document stylesheet)(Code) | | Transform one document into another
Parameters: document - source Document Parameters: stylesheet - XSLT Document transformed Document |
|
|