I am trying to practice making 开发者_如何学Pythonmaking some xml and also a parser for xml in php.
Currently if I have an xml file, I have to open it in notepad to see all the "tags" for it. This isn't very good and their is no indenting or spacing correctly so I have to search through carefully.
Is there something way to display the xml in the indented style so I can easily see what is the parent and what is the child?
I believe Notepad++ has some plugin that makes your XML pretty. Also opening it in a browser like Firefox or Internet explorer will show you the XML with better markup. If you dont see anything use view source!
There are also some online solutions, just google XML Pretty
or XML tidy
. For example: http://tools.decisionsoft.com/xmlpp.html
精彩评论