Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Xerces dependency? #266

Open
wilx opened this issue Nov 28, 2022 · 3 comments
Open

Removing Xerces dependency? #266

wilx opened this issue Nov 28, 2022 · 3 comments

Comments

@wilx
Copy link

wilx commented Nov 28, 2022

I am looking into removing all instances of Xerces and xml-apis from our product. It looks like one of the instances where it is not currently removable is as Antisamy's dependency. Would it be possible to rewrite the few uses of org.apache.xerces in Antisamy with generic Java APIs or something else?

@davewichers
Copy link
Collaborator

I'm sure its possible, and its probably a good idea. We just haven't made it a priority. If you have some experience doing such rewrites of XML parsers any chance you'd be willing to submit a pull request with these changes? As you said, there are only a few.

@davewichers
Copy link
Collaborator

@wilx - We just made some progress removing some of the use of Xerces and replacing parts with what comes with Neko HTMLUnit, which contains its own slimmed down/maintained fork of parts of Xerces. If you look in the pom, there is a comment describing a suggestion on how to replace the last bits of Xerces we use in AntiSamy with something newer/better maintained.

@wilx
Copy link
Author

wilx commented Jan 17, 2023

@davewichers I actually did experiment with it back in November. But I couldn't get it to do what Antisamy needs it to do. See https://github.com/nahsra/antisamy/compare/main...wilx:antisamy:transformer-experiment?expand=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants