org.fm.addressbook.util
Class XMLUtil

java.lang.Object
  extended by org.fm.addressbook.util.XMLUtil

public class XMLUtil
extends java.lang.Object

JContact- online Address Book Management Systemhttp://jcontact.sourceforge.net/

Licensed under the terms of any of the following licenses at your choice: -
GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/licenses/gpl.html -
GNU Lesser General Public License Version 2.1 or later (the "LGPL") http://www.gnu.org/licenses/lgpl.html

XMLUtil class.

Author:
Tennyson Varghese
Aneesh S

Constructor Summary
XMLUtil()
           
 
Method Summary
static java.util.List<BaseType> getBaseTypes(org.dom4j.Document document, java.lang.String keyType, java.lang.String key)
          Return list of BaseType in given document for given keyType and key
static org.dom4j.Document loadDocument(java.io.InputStream xmlStream)
          Load document from given xml InputStream
static org.dom4j.Document loadDocument(java.lang.String xmlPath)
          Load document from given xml path
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

loadDocument

public static org.dom4j.Document loadDocument(java.lang.String xmlPath)
Load document from given xml path

Parameters:
xmlPath -
Returns:
Document

loadDocument

public static org.dom4j.Document loadDocument(java.io.InputStream xmlStream)
Load document from given xml InputStream

Parameters:
xmlStream -
Returns:
Document

getBaseTypes

public static java.util.List<BaseType> getBaseTypes(org.dom4j.Document document,
                                                    java.lang.String keyType,
                                                    java.lang.String key)
Return list of BaseType in given document for given keyType and key

Parameters:
document -
keyType -
key -
Returns:
List