org.hibernate.search.util.impl
Class XMLHelper

java.lang.Object
  extended by org.hibernate.search.util.impl.XMLHelper

public class XMLHelper
extends Object

A utility class to help with xml parsing

Author:
Lukasz Moren

Constructor Summary
XMLHelper()
           
 
Method Summary
static Element elementFromString(String xml)
          Converts a String representing an XML snippet into an Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLHelper

public XMLHelper()
Method Detail

elementFromString

public static Element elementFromString(String xml)
                                 throws Exception
Converts a String representing an XML snippet into an Element.

Parameters:
xml - snippet as a string
Returns:
a DOM Element
Throws:
Exception - if unable to parse the String or if it doesn't contain valid XML.


Copyright © 2006-2012 Hibernate. All Rights Reserved.