[
https://issues.apache.org/jira/browse/XERCESC-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869570#action_12869570
]
Jesse Pelton commented on XERCESC-1930:
---------------------------------------
If you attach a sample document, it's much easier to diagnose a problem.
In the absence of such a document, I'm going to hazard a guess as to the nature
of your question. I think you're saying that when you have text in element
context, CRLF gets converted to space. For instance, if your serialization
includes something like the following:
<myElement myAttribute="text with
line break">
</myElement>
your DOM has an element node for myElement that has a single attribute whose
content is "text with line break".
If this is indeed the question, this behavior is mandated by the XML
specification. If you're unclear about this, please read the spec (particularly
http://www.w3.org/TR/2006/REC-xml11-20060816/#AVNormalize) or an introductory
XML text.
Rather than opening a bug report, please post questions to the appropriate
mailing list. I believe that's [email protected].
> CRLF is replaced by space
> --------------------------
>
> Key: XERCESC-1930
> URL: https://issues.apache.org/jira/browse/XERCESC-1930
> Project: Xerces-C++
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Harpreet
>
> Hi,
> Our code creates a xml where description tag contains text in the format
> "abcdCRLFefgh" where CR stands for carriage return and LF stands for line
> feed. Now when we pass the xml to xerces, the CRLF combo is converted to
> space which is unexpected.
> Is this issue already reported? I searched over the net and in JIRA as well
> but could not find any such reported issues.
> Is there any workaround available for this.
> Thanks
> Harpreet
--
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: [email protected]
For additional commands, e-mail: [email protected]