[xwiki-devs] [Brainstorming] Pretty printing XML when exporting XAR?
Hi devs, We need to take a decision. There are 2 places where we have XMLs: A) In our SCM when we store our documents and when we call mvn xar:format B) When we export XARs Right now we pretty print in A) (very recent, I've done this a few days ago) but not in B) which is not optimal since users absolutely need to call xar:format to be able to diff their output with what is in our SCM. * Solution 1: we don't pretty print in A and B * Solution 2: we pretty print in A and B What would you prefer? Thanks -Vincent
On 04/05/2012 06:36 PM, Vincent Massol wrote:
Hi devs,
We need to take a decision. There are 2 places where we have XMLs:
A) In our SCM when we store our documents and when we call mvn xar:format B) When we export XARs
Right now we pretty print in A) (very recent, I've done this a few days ago) but not in B) which is not optimal since users absolutely need to call xar:format to be able to diff their output with what is in our SCM.
* Solution 1: we don't pretty print in A and B * Solution 2: we pretty print in A and B
What would you prefer?
I prefer solution 2), as long as we're sure that it never adds extra whitespaces in the text nodes.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 04/05/2012 12:36 PM, Vincent Massol wrote:
Hi devs,
We need to take a decision. There are 2 places where we have XMLs:
A) In our SCM when we store our documents and when we call mvn xar:format B) When we export XARs
Right now we pretty print in A) (very recent, I've done this a few days ago) but not in B) which is not optimal since users absolutely need to call xar:format to be able to diff their output with what is in our SCM.
* Solution 1: we don't pretty print in A and B * Solution 2: we pretty print in A and B
What would you prefer?
I'm not against either of the options. Usually I prefer pretty-printed stuff, since it's easier to edit properly indented XML, but the XML files aren't supposed to be edited by hand. Let's say a slight +1 for pretty-printing both A and B. -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Thu, Apr 5, 2012 at 6:36 PM, Vincent Massol <[email protected]> wrote:
Hi devs,
We need to take a decision. There are 2 places where we have XMLs:
A) In our SCM when we store our documents and when we call mvn xar:format B) When we export XARs
Right now we pretty print in A) (very recent, I've done this a few days ago) but not in B) which is not optimal since users absolutely need to call xar:format to be able to diff their output with what is in our SCM.
* Solution 1: we don't pretty print in A and B * Solution 2: we pretty print in A and B
What would you prefer?
+1 for solution 2
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Thu, Apr 5, 2012 at 7:36 PM, Vincent Massol <[email protected]> wrote:
Hi devs,
We need to take a decision. There are 2 places where we have XMLs:
A) In our SCM when we store our documents and when we call mvn xar:format B) When we export XARs
Right now we pretty print in A) (very recent, I've done this a few days ago) but not in B) which is not optimal since users absolutely need to call xar:format to be able to diff their output with what is in our SCM.
* Solution 1: we don't pretty print in A and B * Solution 2: we pretty print in A and B
What would you prefer?
+1 for (2) Thanks, Marius
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
+1 for (2) Thanks, Eduard On Fri, Apr 6, 2012 at 12:48 PM, Marius Dumitru Florea < [email protected]> wrote:
On Thu, Apr 5, 2012 at 7:36 PM, Vincent Massol <[email protected]> wrote:
Hi devs,
We need to take a decision. There are 2 places where we have XMLs:
A) In our SCM when we store our documents and when we call mvn xar:format B) When we export XARs
Right now we pretty print in A) (very recent, I've done this a few days ago) but not in B) which is not optimal since users absolutely need to call xar:format to be able to diff their output with what is in our SCM.
* Solution 1: we don't pretty print in A and B * Solution 2: we pretty print in A and B
What would you prefer?
+1 for (2)
Thanks, Marius
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (6)
-
Anca Luca -
Eduard Moraru -
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol