I'm not sure what you're asking for. Attribute value normalization [1] is
part of the parsing process. It occurs before the data is presented to an
application through any of the standard APIs.

[1] http://www.w3.org/TR/2006/REC-xml-20060816/#AVNormalize

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Aleksandr Kravets <akravets.w...@gmail.com> wrote on 02/27/2009 10:07:08
AM:

> Thanks.
> Are there utilities in Xerces that allow carriage returns
> normalization easier than let's say parsing the whole document and
> doing it manually?

> On Thu, Feb 26, 2009 at 6:39 PM, <kesh...@us.ibm.com> wrote:
> Carriage return is ASCII 13, so &#13; or &xD; will represent that
character.
>
> However, be sure you understand XML's rules for whitespace
> normalization in attribute values. Depending on what you're trying
> to do, you may want to replace that attribute with a child
> element... or replace the offending character with some notation
> that your application, rather than XML, will process appropriately.
>
> ______________________________________
> "... Three things see no end: A loop with exit code done wrong,
> A semaphore untested, And the change that comes along. ..."
>  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.
> org/pegasus/songs/threes-rev-11.html)

Reply via email to