89
Views
3
Comments
how to indent an XML text
Question

Good afternoon, I'm trying to devise a text in xml to make it look beautiful,
How do I use a javascript function to display the ordered xml text?



2020-02-28 09-46-54
Eduardo Jauch

Hi Jesus,

Not sure why do you need this, but maybe this can help? 

https://stackoverflow.com/questions/376373/pretty-printing-xml-with-javascript

Or maybe this?

https://gist.github.com/sente/1083506/d2834134cd070dbcc08bf42ee27dabb746a1c54d

If this is not what you are looking for, could you be more specific?

Cheers.

2019-03-13 00-06-59
Jesus Arcia Hernandez

Eduardo Jauch wrote:

Hi Jesus,

Not sure why do you need this, but maybe this can help? 

https://stackoverflow.com/questions/376373/pretty-printing-xml-with-javascript

Or maybe this?

https://gist.github.com/sente/1083506/d2834134cd070dbcc08bf42ee27dabb746a1c54d

If this is not what you are looking for, could you be more specific?

Cheers.

excellent, this is what I need, how would you implement it?


2020-02-28 09-46-54
Eduardo Jauch

Probably using a non-escaped expression...
But you may want to look into the Forge to see if you can find a component that will help you with this (text components, html utilities, etc).

Cheers.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.