title: Hibernate Search: Index an XML String?
body: <p>I have a JPA entity mapped using Hibernate Search.  The entity has a field that will consist of an XML <code>String</code>.  Is it possible to index the value of that <code>String</code> and perform a search against it?</p>
  
  <p>For example, if my XML <code>String</code> looked like:</p>
  
  <pre><code>&lt;myElement&gt;
    &lt;myChildElement&gt;Foo&lt;/myChildElement&gt;
  &lt;/myElement&gt;
  </code></pre>
  
  <p>Would it be possible to query for Entities with a field that have <code>myChildElement</code> equal to <code>Foo</code>?  If so, how would I map the field within the entity?  How do I form the Hibernate Search query?</p>