Skip to content

Commit

Permalink
Merge branch '2.18' into 2.19
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 25, 2025
2 parents 22bc8da + e5b8585 commit 0c7e708
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,15 @@ One useful setting is the [maxElementDepth](https://javadoc.io/static/com.faster

## Android quirks

Usage of this library on Android is currently not supported. This is due to the fact that the Stax API is unavailable on the Android platform, and attempts to declare an explicit dependency on the Stax API library will result in errors at build time (since the inclusion of the `javax.*` namespace in apps is restricted).
For more on the issues, see:
Use of this library on Android is supported since version 2.15.0 (partly via fix of
[#533](https://github.com/FasterXML/jackson-dataformat-xml/issues/533)).

Earlier versions had problem due to Stax API being unavailable on the Android platform, and attempts to declare an explicit dependency on the Stax API library resulting in errors at build time (since the inclusion of the `javax.*` namespace in apps is restricted).
For more on this old issue, see:

* https://stackoverflow.com/questions/31360025/using-jackson-dataformat-xml-on-android
* https://www.docx4java.org/blog/2012/05/jaxb-can-be-made-to-run-on-android/

Note that as per above articles it MAY be possible to use the module on Android, but it unfortunately requires
various work-arounds and development team can not do much to alleviate these issues.
Suggestions for improvements would be welcome; discussions on
[Jackson users list](https://groups.google.com/forum/#!forum/jackson-user) encouraged.

## Serializing POJOs as XML

Serialization is done very similar to JSON serialization: all that needs to change is `ObjectMapper` instance to use:
Expand Down

0 comments on commit 0c7e708

Please sign in to comment.