Class XmlReader

java.lang.Object
edu.internet2.middleware.grouper.xml.XmlReader

public class XmlReader extends Object
Read XML representation of the Groups Registry.

Since:
1.1.0
Version:
$Id: XmlReader.java,v 1.2 2008-09-29 03:38:30 mchyzer Exp $
  • Constructor Details

    • XmlReader

      public XmlReader()
  • Method Details

    • getDocumentFromFile

      public static Document getDocumentFromFile(String filename) throws GrouperException
      Read Document from file.
       try {
         Document doc = XmlReader.getDocumentFromFile(filename);
       }
       catch (GrouperException eG) {
         // unable to retrieve document
       }
       
      Parameters:
      filename - Read Document from this file.
      Throws:
      GrouperException
      Since:
      1.1.0
    • getDocumentFromString

      public static Document getDocumentFromString(String s) throws GrouperException
      Read Document from String.
       try {
         Document doc = XmlReader.getDocumentFromString(s);
       }
       catch (GrouperException eG) {
         // unable to retrieve document
       }
       
      Parameters:
      s - Read document from this String.
      Throws:
      GrouperException
      Since:
      1.1.0
    • getDocumentFromURL

      public static Document getDocumentFromURL(URL url) throws GrouperException
      Read Document from URL.
       try {
       }
       catch (GrouperException eG) {
       }
       
      Parameters:
      url - Read Document from this URL.
      Throws:
      GrouperException
      Since:
      1.1.0