org.hibernate.search.util.impl
Class XMLHelper
java.lang.Object
org.hibernate.search.util.impl.XMLHelper
public class XMLHelper
- extends Object
A utility class to help with xml parsing
- Author:
- Lukasz Moren
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLHelper
public XMLHelper()
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.