Tag: pretty-print

53 votes
30 answers
1.4K views
How to pretty print XML from Java?

I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a Str

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
45 votes
27 answers
1.4K views
Pretty printing XML in Python

What is the best way (or are the various ways) to pretty print XML in Python?

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
1.8K views
How to pretty-print a numpy.array without scientific notation and with given precision?

I'm curious, whether there is any way to print formatted numpy.arrays, e.g., in a way similar to this: x

avatar
Joseph
0 1 0 9
asked 07 September, 2021