question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `CharacterEscapes` using Stax (Woodstox/Aalto) functionality

See original GitHub issue

Currently CharacterEscapes system does not work for XML module, mostly because module has no direct control over output escaping. However, Stax2 extension that Woodstox (and Aalto I think?) implements does have similar functionality, using properties:

  • P_TEXT_ESCAPER (for cdata)
  • P_ATTR_VALUE_ESCAPER (for attribute values)

so it would be great to use that functionality to support needs for customized escapes, if at all possible. It is hard to say for sure whether that would work, but it should be easy enough to check.

Issue Analytics

  • State:open
  • Created 10 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mvysnycommented, Dec 12, 2019

This is ridiculous, ' and " should have been escaped automatically by default. Workaround is to implement EscapingWriterFactory:

https://stackoverflow.com/questions/56799368/escaping-quotes-using-jackson-dataformat-xml

0reactions
cowtowncodercommented, Dec 13, 2019

Excellent! Thank you for sharing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Woodstox XML parser: basic Stax properties
It implements both main incremental parsing APIs — Stax AND SAX — and offers full XML feature support, conformance, similar to Apache Xerces...
Read more >
Bountysource
Support `CharacterEscapes` using Stax (Woodstox/Aalto) functionality. ... Help and Information. Frequently Asked Questions · Bugs and Feature Requests ...
Read more >
Escaping Quotes Using Jacksondataformatxml - ADocLib
Best Java code snippets using com.fasterxml.jackson.dataformat.csv. ... limited by time Support CharacterEscapes using Stax Woodstox/Aalto functionality.
Read more >
Using StAX - Streaming API for XML
See Java Language Changes for a summary of updated language features in Java SE 9 and ... In general, StAX programmers create XML...
Read more >
Jackson Work in Progress - FasterXML/jackson-future-ideas ...
Rewrite Property introspection (esp. to help with Creator properties) ... Support CharacterEscapes using Stax (Woodstox/Aalto) functionality ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found