ar.edu.unr.fceia.bottallo
Class XMLReader

java.lang.Object
  extended by ar.edu.unr.fceia.bottallo.XMLReader

public class XMLReader
extends java.lang.Object

Read XML files


Constructor Summary
XMLReader()
           
 
Method Summary
 org.jdom.Document getDocument(java.lang.String fileName)
           
 org.jdom.Element getRoot(java.lang.String fileName)
          Abre el documento XM fileName, verifica validez y retorna el elemento root
 
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

getRoot

public org.jdom.Element getRoot(java.lang.String fileName)
Abre el documento XM fileName, verifica validez y retorna el elemento root

Parameters:
fileName - Nombre de archivo XML, path absoluto
Returns:
Root element de fileName

getDocument

public org.jdom.Document getDocument(java.lang.String fileName)