axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Mitchell (JIRA)" <>
Subject [jira] Commented: (AXIS2C-963) Guththila neglects spacing and formatting between nodes whereas libxml2 preserves it.
Date Tue, 12 Feb 2008 12:23:08 GMT


Bill Mitchell commented on AXIS2C-963:

Senaka, it's a good question whether a better fix is available.  I considered whether to implement
a change down in axiom_stax_builder_create_om_text(), but it doesn't know whether the text
is whitespace or not.  And I like the fact that non whitespace text before the root element
will be diagnosed as an error.  

To address your concern, one could replicate the test against lastnode in axiom_stax_builder_next_with_token(),
before it calls axiom_stax_builder_create_om_text().  Looking at the code again, I actually
like that fix better than the one I put in, as it would preserve the ability to detect other
errors, and would prevent the error being posted to the environment and then ignored.  

> Guththila neglects spacing and formatting between nodes whereas libxml2 preserves it.
> -------------------------------------------------------------------------------------
>                 Key: AXIS2C-963
>                 URL:
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila, xml/parser
>            Reporter: Senaka Fernando
>            Assignee: Senaka Fernando
>             Fix For: 1.3.0
> Guththila neglects spacing and formatting between nodes. This behavior contradicts to
that of libxml2. Thus, If I open a file then deserialize it and build our OM Model, then print
it to the terminal, I have lost the formatting in the file. This is because the parser simply
filters out the whitespace. This behavior would make our parsing inconsistent.
> Regards,
> Senaka

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message