Firefish 0.5.10

gov.lbl.dsd.p2pio.util
Class XMLUtil

java.lang.Object
  extended bygov.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 $

Constructor Summary
XMLUtil()
           
 
Method Summary
static Msg dom2msg(Element elem)
           
static Attribute dom2xom(Attr node)
           
static Document dom2xom(Document doc)
           
static Document dom2xom(DocumentFragment fragment)
           
static Element dom2xom(Element elem)
           
static Node dom2xom(Text node)
           
static Element msg2dom(Msg msg)
           
static SOAPBodyElement msg2soap(Msg msg)
           
static Document msg2SoapDocument(Msg msg)
           
static String msg2SoapString(Msg msg)
           
static Element msg2xom(Msg msg)
           
static Element soap2xom(Document doc)
           
static Element soap2xom(InputStream in)
           
static Element soap2xom(SOAPBodyElement elem)
           
static Msg string2msg(String elem)
           
static String toPrettyXML(Document doc)
           
static void toPrettyXML(Document doc, OutputStream out)
           
static String toPrettyXML(Element elem)
           
static String toPrettyXML(Element elem)
           
static Document xom2dom(Document doc)
           
static Element xom2dom(Element elem)
           
static Msg xom2msg(Element elem)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

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)

Firefish 0.5.10

Jump to the Firefish Homepage