Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.search.util
Class XMLHelper

    java.lang.Object
      org.hibernate.search.util.XMLHelper

    public class XMLHelper

extends java.lang.Object

A utility class to help with xml parsing

Author:
  Lukasz Moren

Constructor Summary
`XMLHelper()`

Method Summary
`static org.w3c.dom.Element` | `elementFromString(java.lang.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 org.w3c.dom.Element elementFromString(java.lang.String xml)
                                                 throws java.lang.Exception

  Converts a String representing an XML snippet into an `Element`.

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.