org.fao.oaipmh.util
Class Xml

java.lang.Object
  extended by org.fao.oaipmh.util.Xml

public class Xml
extends java.lang.Object

This is a portion of the jeeves.utils.Xml class and is replicated here just to avoid the jeeves jar


Constructor Summary
Xml()
           
 
Method Summary
static org.jdom.Element loadStream(java.io.InputStream input)
          Loads an xml stream and returns its root node (validates the xml with a dtd)
static void validate(java.lang.String schemaPath, org.jdom.Element xml)
          Converts an xml element to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xml

public Xml()
Method Detail

loadStream

public static org.jdom.Element loadStream(java.io.InputStream input)
                                   throws java.io.IOException,
                                          org.jdom.JDOMException
Loads an xml stream and returns its root node (validates the xml with a dtd)

Throws:
java.io.IOException
org.jdom.JDOMException

validate

public static void validate(java.lang.String schemaPath,
                            org.jdom.Element xml)
                     throws java.io.IOException,
                            org.xml.sax.SAXException
Converts an xml element to a string

Throws:
java.io.IOException
org.xml.sax.SAXException