pretty-print tag

3 questions


1 answers
112 views
0
To output variables & properties for an object

Does Python have a function like print_r of PHP?I have to see the status of the object when I debug it.Is there a similar function?


1 answers
114 views
0
How do I print XML data in Java in a good way?

There is a Java string that has no line feed and is not indented. I want to make this string look good. How shall I do it?String unformattedXml = <tag><nested>hello</nested></tag&...

1 years ago

1 answers
96 views
0
How to output XML in a good way?

How can I print out the xml beautifully?There is an xml file like this<foo> <bar> <type foobar=1/> <type foobar=2/> </bar></foo>When running Python code import xml....

1 years ago

© 2024 OneMinuteCode. All rights reserved.