Re: Serialization misses a new line

AurĂ©lien Pupier <[email protected]> Tue, 17 Jun 2025 10:43:10 +0200
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CAFNb52c4OZ91CdP0pMhQTg+qRJH-dia5FYbz36a105K=opKjoQ@mail.gmail.com>
--0000000000002ff6c50637c082ad
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Olivier,

I think you should report the issue on the JIRA bugtracker:
https://issues.apache.org/jira/projects/XERCESJ/issues/XERCESJ-493

regards,

On Mon, Jun 16, 2025 at 11:15=E2=80=AFAM Olivier Cailloux <
[email protected]> wrote:

> Dear list,
>
> The LSSerializer
> <https://xml.apache.org/xalan-j/apidocs/org/w3c/dom/ls/LSSerializer.html>=
 of
> Xerces 2.12.2 with pretty-print misses a new line after the xml
> declaration. The bug is similar to JDK-8259502
> <https://bugs.openjdk.org/browse/JDK-8259502>, that has been corrected in
> the JDK (although the bug description mentions Xalan, the bug does happen
> if, and only if, Xerces is included in the dependencies
> <https://github.com/oliviercailloux/JARiS/blob/xerces-html/pom.xml#L83-L8=
8>).
> It can be reproduced with this test
> <https://github.com/oliviercailloux/JARiS/blob/xerces-html/src/test/java/=
io/github/oliviercailloux/jaris/xml/XercesSerializationTests.java>
> .
>
> Should I report this somewhere?
>
>

--0000000000002ff6c50637c082ad
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello Olivier,<br><br></div><div>I think you should r=
eport the issue on the JIRA bugtracker: <a href=3D"https://issues.apache.or=
g/jira/projects/XERCESJ/issues/XERCESJ-493">https://issues.apache.org/jira/=
projects/XERCESJ/issues/XERCESJ-493</a></div><div><br></div><div>regards,</=
div></div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"=
ltr" class=3D"gmail_attr">On Mon, Jun 16, 2025 at 11:15=E2=80=AFAM Olivier =
Cailloux &lt;<a href=3D"mailto:[email protected]">olivier.ca=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex">



<div>
<div>Dear list,</div>
<div><br>
</div>
<div>The=C2=A0<a href=3D"https://xml.apache.org/xalan-j/apidocs/org/w3c/dom=
/ls/LSSerializer.html" target=3D"_blank">LSSerializer</a>=C2=A0of Xerces 2.=
12.2 with pretty-print misses a new line after the xml declaration. The bug=
 is similar to=C2=A0<a href=3D"https://bugs.openjdk.org/browse/JDK-8259502"=
 target=3D"_blank">JDK-8259502</a>,
 that has been corrected in the JDK (although the bug description mentions =
Xalan, the bug does happen if, and only if, Xerces is included in the=C2=A0=
<a href=3D"https://github.com/oliviercailloux/JARiS/blob/xerces-html/pom.xm=
l#L83-L88" target=3D"_blank">dependencies</a>). It can be
 reproduced with=C2=A0<a href=3D"https://github.com/oliviercailloux/JARiS/b=
lob/xerces-html/src/test/java/io/github/oliviercailloux/jaris/xml/XercesSer=
ializationTests.java" target=3D"_blank">this test</a>.=C2=A0</div>
<div><br>
</div>
<div>Should I report this somewhere?</div>
<div><br>
</div>
<div><span></span></div>
</div>

</blockquote></div>

--0000000000002ff6c50637c082ad--