issrg.saml.util
Class XMLReader

java.lang.Object
  extended by issrg.saml.util.XMLReader

public class XMLReader
extends java.lang.Object

Author:
Linying Su

Constructor Summary
XMLReader()
           
 
Method Summary
static org.w3c.dom.Element getElementFromString(java.lang.String xmlString)
          This method is used to get a DOM Element object from an XML string
static org.w3c.dom.Element getElementFromXMLFile(java.lang.String fileName)
          This method is used to get a DOM Element object from an XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReader

public XMLReader()
Method Detail

getElementFromXMLFile

public static org.w3c.dom.Element getElementFromXMLFile(java.lang.String fileName)
                                                 throws XMLParserException
This method is used to get a DOM Element object from an XML file

Parameters:
fileName - is the path of the XML file.
Throws:
XMLParserException

getElementFromString

public static org.w3c.dom.Element getElementFromString(java.lang.String xmlString)
                                                throws XMLParserException
This method is used to get a DOM Element object from an XML string

Parameters:
xmlString - is the string content of the XML.
Throws:
XMLParserException