I am trying to generate an XML file using JS. I am really clueless about where to start. How can I generate an XML file using js
Asked
Active
Viewed 80 times
-2
-
2Does this answer your question? [Create XML in Javascript](https://stackoverflow.com/questions/14340894/create-xml-in-javascript) – 0stone0 Oct 22 '20 at 14:02
-
1Please see the FAQ [Under what circumstances may I add "urgent" or other similar phrases to my question, in order to obtain faster answers?](//meta.stackoverflow.com/q/326569) – Heretic Monkey Oct 22 '20 at 14:05
-
No it wasn't mine. @0stone0 – thelonelyCoder Oct 22 '20 at 14:07
-
If the linked post doesn't answer your question, you should include more details, and show us what you've tried! – 0stone0 Oct 22 '20 at 14:10
-
Hello, @0stone0 to be very frank I am totally clueless where to start from... I have been using JSON for my projects but haven't work on XML before – thelonelyCoder Oct 22 '20 at 14:21
1 Answers
0
xml is just like html, so you can create element and add xml to element then you can parse easy.
Or
Use XMLDocument object see https://www.w3schools.com/XML/dom_document.asp

Hani
- 149
- 1
- 3
-
-
-
for more detail click on any function in the first reference and it will open an example for it. – Hani Oct 23 '20 at 19:09