new XStream version doesn't work with <?ignore

39 views
Skip to first unread message

Amit Amar

unread,
Jun 15, 2021, 7:04:31 AM6/15/21
to XStream User

I'm using xstream version 1.4.15 and I'm trying to upgrade to version: 1.4.17 without success.

The reason of failure is because I have files that contains flow diagrams in the file. please see attached:

example

and I got this execption:

XmlPullParserException: processing instruction started on line 20 and column 5 was not closed (position: END_TAG seen ...\t\t+---------->| Entered Assigned Unit\t|-------------------------->... @48:88)

How I can solve this issue and ignore this "<?ignore" section?

Thank you very much and have a nice day,

Amit.

Jörg Schaible

unread,
Jun 15, 2021, 1:48:56 PM6/15/21
to XStream User, Amit Amar
Hi,

On Tuesday, 15. June 2021, 13:04:30 CEST Amit Amar wrote:
> I'm using xstream version 1.4.15 and I'm trying to upgrade to version:
> 1.4.17 without success.
>
> The reason of failure is because I have files that contains flow diagrams
> in the file. please see attached:
>
> example <https://i.stack.imgur.com/57QAy.png>
>
> and I got this execption:
>
> XmlPullParserException: processing instruction started on line 20 and
> column 5 was not closed (position: END_TAG seen ...\t\t+---------->|
> Entered Assigned Unit\t|-------------------------->... @48:88)
>
> How I can solve this issue and ignore this "<?ignore" section?
>
> Thank you very much and have a nice day,

Actually, this is not XStream's fault, but a problem of the XML parser in use.
However, since version 1.4.17 we use the MXParser instead of the Xpp3 parser
as default.

Since the default Xpp parser is localized by a service API, you can simply
remove the JARs for the mxparser and xmlpull from the classpath and add the
xpp3_min instead.

Regards,
Jörg


Amit Amar

unread,
Jun 23, 2021, 7:33:01 AM6/23/21
to XStream User
Hi,

Thank you for your comment.

I try to do what you told me to do:

<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.17</version>
<exclusions>
<exclusion>
<groupId>io.github.x-stream</groupId>
<artifactId>mxparser</artifactId>
</exclusion>
<exclusion>
<groupId>xmlpull</groupId>
<artifactId>xmlpull</artifactId>
</exclusion>
</exclusions>
</dependency>


and this is not worked.. I didn't add the xpp3_min (I saw in xstream pom that this xpp3_min jar already included)

This is what you meant?

Please let me know,

BR,

Amit.


ב-יום שלישי, 15 ביוני 2021 בשעה 20:48:56 UTC+3, joehni כתב/ה:

Jörg Schaible

unread,
Jun 23, 2021, 12:21:24 PM6/23/21
to XStream User, Amit Amar
Hi Amit,

On Wednesday, 23. June 2021, 13:33:01 CEST Amit Amar wrote:
> Hi,
>
> Thank you for your comment.
>
> I try to do what you told me to do:

[snip]

> and this is not worked.. I didn't add the xpp3_min (I saw in xstream pom
> that this xpp3_min jar already included)

XStream 1.4.17 declares xpp3_min as optional dependency. i.e. if you want to
use it, you have to declare it in your own project yourself.

> This is what you meant?

Yes.

Regards,
Jörg


Jörg Schaible

unread,
Jun 23, 2021, 12:22:50 PM6/23/21
to XStream User, Amit Amar

BTW: Can you create a bug issue here for the MXParser:

https://github.com/x-stream/mxparser/issues


Thanks!

Reply all
Reply to author
Forward
0 new messages