Hi, 

I'm finding a way to read/write the comments that are previously inserted in
a xml file while parsing it. For example, imagine I have the following xml
file. 


<?xml version="1.0" encoding="UTF-8"?>
<queries>
  <!-- Query to check the operators -->
  <query id="ChkOpe" cacheable="true">
    <table id="BILTRA" alias="TRA"/>
    <field alias="operation_id" id="OPENUM" table="TRA"/>
    <where>
      <and>
        <filter field="OPENPA" table="TRA" condition="=" variable="Ref"
ignorecase="true" trim="false" optional="false"/>
      </and>
    </where>
    <variable id="Ref" type="STRING" name="reference" optional="false"/>
  </query>
</queries>

As you can see, there is a comment (in bold text) in my xml file and I want
to take it into account when I parse the xml document. Is there any way for
doing that with Xstream? 

Thanks in advance!

Best regards.
-- 
View this message in context: 
http://old.nabble.com/Read-Write-comments-with-Xstream-tp34446099p34446099.html
Sent from the xstream - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to