gov.lbl.dsd.p2pio.util
Class XMLUtil
java.lang.Object
gov.lbl.dsd.p2pio.util.XMLUtil
- public class XMLUtil
- extends Object
Miscellaneous static utility functions to convert between XML object models.
- Version:
- $Revision: 1.10 $, $Date: 2004/03/25 20:00:34 $
XMLUtil
public XMLUtil()
dom2xom
public static Document dom2xom(Document doc)
dom2xom
public static Element dom2xom(Element elem)
dom2xom
public static Node dom2xom(Text node)
dom2xom
public static Attribute dom2xom(Attr node)
dom2xom
public static Document dom2xom(DocumentFragment fragment)
dom2msg
public static Msg dom2msg(Element elem)
xom2msg
public static Msg xom2msg(Element elem)
string2msg
public static Msg string2msg(String elem)
xom2dom
public static Document xom2dom(Document doc)
xom2dom
public static Element xom2dom(Element elem)
msg2dom
public static Element msg2dom(Msg msg)
msg2xom
public static Element msg2xom(Msg msg)
soap2xom
public static Element soap2xom(SOAPBodyElement elem)
soap2xom
public static Element soap2xom(InputStream in)
throws ValidityException,
ParsingException,
IOException
- Throws:
ValidityException
ParsingException
IOException
soap2xom
public static Element soap2xom(Document doc)
msg2SoapString
public static String msg2SoapString(Msg msg)
msg2SoapDocument
public static Document msg2SoapDocument(Msg msg)
msg2soap
public static SOAPBodyElement msg2soap(Msg msg)
toPrettyXML
public static void toPrettyXML(Document doc,
OutputStream out)
toPrettyXML
public static String toPrettyXML(Document doc)
toPrettyXML
public static String toPrettyXML(Element elem)
toPrettyXML
public static String toPrettyXML(Element elem)
Jump to the Firefish Homepage