Jacek Pospychala wrote:
> hi XSD
>
> Do you have any built-in chars escaping that could change '\r' to
> '&#13;' in my XSD documents? I'm doing some operations on XSD model
> and it's underlying DOM, and suddenly get \r chars escaped.
No, all the work is done by the doSerialize methods in XSDResourceImpl:

>
> Because it's not only EMF-XSD involved, I'm a bit puzzled and trying
> to figure out who is doing this "favour" to me :-)
I'd have to assume it's the underlying JAXP implementation. Keep in
mind that when reading documents, JAXP normalizes the platform specific
linefeed convention to \n regardless of the platform, so when
serializing, it expects to see \n while \r will be considered a special
character that needs escaping. So probably your application should be
using \n exclusively to avoid any \r in the output...
>
> thanks a lot for your help
>
>

Jacek Pospychala wrote:
> hi XSD
>
> Do you have any built-in chars escaping that could change '\r' to
> '&#13;' in my XSD documents? I'm doing some operations on XSD model
> and it's underlying DOM, and suddenly get \r chars escaped.
No, all the work is done by the doSerialize methods in XSDResourceImpl:

>
> Because it's not only EMF-XSD involved, I'm a bit puzzled and trying
> to figure out who is doing this "favour" to me :-)
I'd have to assume it's the underlying JAXP implementation. Keep in
mind that when reading documents, JAXP normalizes the platform specific
linefeed convention to \n regardless of the platform, so when
serializing, it expects to see \n while \r will be considered a special
character that needs escaping. So probably your application should be
using \n exclusively to avoid any \r in the output...
>
> thanks a lot for your help
>
>