Re: [xml] final output filtering?



Recently I had to investigate "line feed" issue in xmlsec and with great help
from smart people on xmldsig mailing list I found that XML processor always
ignores '\r' character:

 To simplify the tasks of applications, the characters passed to an
 application by the XML processor must be as if the XML processor
 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.
 http://www.w3.org/TR/REC-xml#sec-line-ends


And LibXML does exactly this. You should have no problems with
Unix vs. DOS end of lines.


Aleksey






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]