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
-
2Does this answer your question? Create XML in Javascript0stone0– 0stone02020-10-22 14:02:08 +00:00Commented Oct 22, 2020 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?Heretic Monkey– Heretic Monkey2020-10-22 14:05:23 +00:00Commented Oct 22, 2020 at 14:05
-
No it wasn't mine. @0stone0thelonelyCoder– thelonelyCoder2020-10-22 14:07:19 +00:00Commented Oct 22, 2020 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– 0stone02020-10-22 14:10:36 +00:00Commented Oct 22, 2020 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 beforethelonelyCoder– thelonelyCoder2020-10-22 14:21:01 +00:00Commented Oct 22, 2020 at 14:21
Add a comment
|
1 Answer
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
3 Comments
thelonelyCoder
Can you show me some example? It would be really helpfull
Hani
for more detail click on any function in the first reference and it will open an example for it.