Is this beyond what is specified in the XML spec: "
To simplify the tasks of applications, the XML processor
MUST behave as
if it normalized all line breaks in external parsed entities
(including
the document entity) on input, before parsing, by
translating both the
two-character sequence #xD #xA and any #xD that is not
followed by #xA
to a single #xA character.
"?
Can you give a short example of instance document that is
affected?
Radu
On Wed, 2007-08-22 at 21:43 -0700, Sarjay wrote:
> Hi,
>
> I am using xmlBeans in a project. It is discovered
> that even if we put
>
> <xsi:attribute name="browser"
use="required">
> <xsi:simpleType>
> <xsi:restriction
base="xsi:string">
> <xsi:whiteSpace
value="preserve"/>
> </xsi:restriction>
> </xsi:simpleType>
> </xsi:attribute>
>
> in the schema. Where as while saving newline is
> retained in attributes. While loading the xml parser
> is still replacing Whitespace(i.e Newline/linefeed)
> chars with spaces in string attribute. We need those
> new lines.
>
> RespondentDocument propDocument =
> RespondentDocument.Factory.parse(xmlFile);
>
> Can anyone suggest me how to overcome this issue.
>
> thnx
> Sarjay
>
>
>
>
____________________________________________________________
________________________Ready for the edge of your seat?
> Check out tonight's top picks on Yahoo! TV.
> http://tv.yahoo.com/
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribe xmlbeans.apache.org
> For additional commands, e-mail: dev-help xmlbeans.apache.org
>
Notice: This email message, together with any attachments,
may contain information of BEA Systems, Inc., its
subsidiaries and affiliated entities, that may be
confidential, proprietary, copyrighted and/or legally
privileged, and is intended solely for the use of the
individual or entity named in this message. If you are not
the intended recipient, and have received this message in
error, please immediately return this by email and then
delete it.
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe xmlbeans.apache.org
For additional commands, e-mail: dev-help xmlbeans.apache.org
|