Docs do not explain how to set properties
See original GitHub issueThe docs do explain which properties should be set and roughly where:
Finding Property name definitions
Woodstox-specific property names are defined in 2 classes:
- WstxInputProperties (to use via XMLInputFactory)
- WstxOutputProperties (to use via XMLOutputFactory)
As with all properties, configuration is done using methods XMLInputFactory.setProperty() and XMLOutputFactory.setProperty().
but it does not explain how do actually do this (in my case on Jackson’s XMLMapper).
After searching through the interfaces for quite some time I found a solution I assume to work, it would be nice if this could be added to the documentation for easier access:
XmlMapper xmlMapper = new XmlMapper();
xmlMapper.getFactory().getXMLInputFactory().setProperty(WstxInputProperties.P_MAX_ATTRIBUTE_SIZE, Integer.MAX_VALUE);
Setting the value via system properties doesn’t seem to work (which was my first assumption).
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
View or change the properties for an Office file
View and update properties and metadata for your documents.
Read more >Video: Change document properties - Microsoft Support
Training: When you create an Office file, you can add properties or metadata to help you better ... To see more properties, select...
Read more >How document properties and DocProperty fields work
You can insert the value of a document property in the document. You do so by inserting a field of the type DocProperty....
Read more >Add a website property to Search Console - Google Support
A property is Search Console's term for a discrete thing that you can examine or manage ... Adding a property does not affect...
Read more >Question: Document Properties (set in main process) are not ...
1. Document properties are set using Groovy script in main process. 2. Sub process is called to do some work and then the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I did change README of xml module:
https://github.com/FasterXML/jackson-dataformat-xml/
… oh. But I change 2.9 branch and hadn’t merged to
master
. Changed now. So that’s why confusion. Thank you for pointing this out.Oh. I haven’t noticed that. Then maybe add a few lines that explain how to configure those factories and how to set them to/use them with the XmlMapper?