Comments (6)
I'll have a look at it (on first sight of the title I was wondering why you'd want it - the description is clear). This will likely be for the 1.3.70 compatible version. It'll only work for those cases where the library generates the indent (and not the delegated xml library - although you can configure that).
from xmlutil.
This should now be in master. I've added an "indentString" property and changed "indent" to delegate to that (it assumes tabs are 8 chars, everything else 1). IndentString doesn't validate for valid whitespace at this point so if you mess up your xml it's your own fault.
from xmlutil.
Thank you!
IndentString doesn't validate for valid whitespace at this point so if you mess up your xml it's your own fault.
Yep, seems fair.
from xmlutil.
I've just pushed the preliminary compatibility updates with 1.3.70/0.20, but I didn't clean up all deprecations yet. Of course 0.20 has not been released yet either. If you really need it, I could do a release with just the indent code.
from xmlutil.
I've released 0.14.0.3 to contain this fix as well as some other fixes - compatible with 1.3.60
I've also release 0.20.0.0, but you will have to provide your own XmlWriter (rather than have the serialization format do this for you) - this code is in master, just not in the release.
from xmlutil.
@pdvrieze do you have a short sample code fragment?
I recently opened an issue about indentString.
from xmlutil.
Related Issues (20)
- Is it possible to completely ignore namespaces during deserialization? HOT 2
- Default namespace on root element and unqualified child elements HOT 5
- IndexOutOfBoundsException: There are no children HOT 3
- Support for multiple alternative names during parsing? HOT 2
- Enums as XML attributes HOT 3
- Error when integrated into android (java) application HOT 2
- Add Multiple NameSpaces for a XML Element HOT 4
- XML NameSpace Prefix is incorrect for Non-Null Attribute HOT 2
- XmlUtil.xmlCollapseWhitespace() throws StringIndexOutOfBoundsException on empty attribute HOT 2
- @XmlClassDiscriminator HOT 1
- Boolean decoding should be strict by default, or at least optionally HOT 4
- DefaultXmlSerializationPolicy deprecated constructor HOT 10
- Partial regression on checking root tag name checking HOT 4
- Wrong order of contents and string parsing HOT 5
- Comments in XML will cause native DOM parser to fail HOT 2
- XmlOtherAttributes: deserialization replaces keys by its value HOT 4
- Add version supporting serialization 1.5.1 but keeping kotlin as 1.8.10 HOT 1
- How to simply parse/serialize a Map to/from XML that has keys as tag names wrapping text values. HOT 5
- Using namespace HOT 2
- UnknownXmlFieldException parsing openlyrics when namespace is specified HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmlutil.