title: How does XPath handle commas in element and attribute text?
body: <p>I'm using commons configuration to read SQL queries from an XML file of my own design, the following are two slightly different examples of a query in a config file:</p>
  
  <pre><code>&lt;query name="authenticateAccount" type="function"&gt;
      &lt;sql&gt;
          { ? = call account_authenticate(?, ?) }
          &lt;parameter name="retun" type="java.sql.Types.BOOLEAN" direction="out" index="1" /&gt;
          &lt;parameter name="supplied_email" type="java.lang.String" direction="in" index="2" /&gt;
          &lt;parameter name="supplied_pw" type="java.lang.String" direction="in" index="3" /&gt;
      &lt;/sql&gt;
  &lt;/query&gt;
  
  &lt;query name="authenticateAccount" type="function"&gt;
      &lt;sql text="{ ? = call account_authenticate(?, ?) }"&gt;
          &lt;parameter name="retun" type="java.sql.Types.BOOLEAN" direction="out" index="1" /&gt;
          &lt;parameter name="supplied_email" type="java.lang.String" direction="in" index="2" /&gt;
          &lt;parameter name="supplied_pw" type="java.lang.String" direction="in" index="3" /&gt;
      &lt;/sql&gt;
  &lt;/query&gt;
  </code></pre>
  
  <p>The query text (seen in the sql element's text or "text" parameter above) is to be provided as a parameter to java.sql.Connection.prepareCall() to create a JDBC CallableStatement.</p>
  
  <p>However, when that text is read by</p>
  
  <pre><code>// I tried both of these for the first xml example:
  HeirarchicalConfiguration.getString("query[@name='authenticateAccount']/sql/text()")
  HeirarchicalConfiguration.getString("query[@name='authenticateAccount']/sql")
  // The following for the second xml example:
  HeirarchicalConfiguration.getString("query[@name='authenticateAccount']/sql/@text")
  </code></pre>
  
  <p>Those XPath expression read the query text in right up to but excluding the first comma:</p>
  
  <pre><code>{ ? = call account_authenticate(?
  </code></pre>
  
  <p>Is what I see when displaying the text that's read in with the XPath expression.</p>
  
  <p>I tried googling info on XPath expressions and commas in XML but found nothing helpful.  Why isn't the text being read past the first comma?</p>