javascript - How to beautify xml received as string? -
this question has reply here:
pretty printing xml javascript 14 answersi have web service returns xml plain string. need format xml beautifier does. expect performed on client side javascript. how can that? libraries improve fitted task?
one way of doing utilize "javascript code prettifier" google.
you can find here: http://google-code-prettify.googlecode.com/svn/trunk/readme.html.
follow setup guide in link , include javascript file , utilize so:
prettyprintone(xml_to_beautified, 'xml')
javascript xml
No comments:
Post a Comment