You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Harpreet (JIRA)" <xe...@xml.apache.org> on 2010/05/20 10:53:54 UTC

[jira] Created: (XERCESC-1930) CRLF is replaced by space

 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: [jira] Created: (XERCESC-1930) CRLF is replaced by space

Posted by Steven Hathaway <sh...@e-z.net>.
This is probably standard XML normalizing of text strings unless the 
text content is wrapped in a CDATA section.

On 5/20/2010 1:53 AM, Harpreet (JIRA) wrote:
>   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
>
>    

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Closed: (XERCESC-1930) CRLF is replaced by space

Posted by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Kolpackov closed XERCESC-1930.
------------------------------------

    Resolution: Invalid

>  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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1930) CRLF is replaced by space

Posted by "Jesse Pelton (JIRA)" <xe...@xml.apache.org>.
    [ 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 c-users@xerces.apache.org.

>  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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org