org.apache.juddi.util.xml
Class XMLUtils

java.lang.Object
  extended by org.apache.juddi.util.xml.XMLUtils

public class XMLUtils
extends java.lang.Object

Author:
Steve Viens (sviens@apache.org)

Constructor Summary
XMLUtils()
           
 
Method Summary
static org.w3c.dom.Document createDocument()
           
static java.util.Vector getChildElementsByTagName(org.w3c.dom.Element element, java.lang.String tagName)
           
static java.lang.String getText(org.w3c.dom.Element element)
           
static org.w3c.dom.Element newRootElement()
          create a new empty xml element
static java.lang.String toString(org.w3c.dom.Element element)
           
static void validate(java.net.URL xmlDocUrl)
           
static void writeXML(org.w3c.dom.Element element, java.io.OutputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

getText

public static java.lang.String getText(org.w3c.dom.Element element)
Parameters:
element -
Returns:
String

getChildElementsByTagName

public static java.util.Vector getChildElementsByTagName(org.w3c.dom.Element element,
                                                         java.lang.String tagName)
Parameters:
element -
tagName -
Returns:
Vector

newRootElement

public static org.w3c.dom.Element newRootElement()
create a new empty xml element

Returns:
a new org.w3c.Element named "root"

createDocument

public static org.w3c.dom.Document createDocument()

writeXML

public static void writeXML(org.w3c.dom.Element element,
                            java.io.OutputStream stream)

toString

public static java.lang.String toString(org.w3c.dom.Element element)

validate

public static void validate(java.net.URL xmlDocUrl)


Copyright © 2004-2007. All Rights Reserved.