On Mon, Jan 18, 2021 at 5:46 PM Mark Prins <[email protected]> wrote:
> As far as I can tell the document is parsed using jdom/sax and then > serialized again, so whitespace without any semantic meaning is removed > > > https://github.com/acegi/xml-format-maven-plugin/blob/6a50b3243bff5ec602fea4c7fd6021a93e573500/src/main/java/au/com/acegi/xmlformat/FormatUtil.java#L55-L84 > > basically the options are limited to: > https://dom4j.github.io/javadoc/2.1.3/org/dom4j/io/OutputFormat.html Yep... if we wanted some "space" preservation, we'd have to use XML comments (those are preserved AFAIK). > Alternatively https://code.revelc.net/formatter-maven-plugin/ could be > an option, it requires an Eclipse formatting profile and could much more > that format/check xml files > Yeah, it's an option too, and I see it's still being released. It could be used to format XML but also json, html and css files.... and java too, with more flexibility in choosing formatting options. Dunno, we try it out just XML and, if we like it, consider using it for more at a later stage. Cheers Andrea == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
