Hi,
Aitor Ugarte wrote:
>
> 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!
Sorry, no. The XStream model completely ignores any comment.
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email