I am new to NodeJS, and I've setup a little webserver. Now I want to be able to use my old html files, which at server side on PHP, which I now want to translate to JavaScript. I have a function in my PHP files, which retrieves information from MySQL and turns it into a XML document and sends it to the client.
So now I want to build a XML 'file' using JavaScript. I am familiar with that, because the JavaScript on client-side would turn the XML file into a table. So I searched the internet and found nothing about:
- Beginning a XML file (so not importing one)
- Building an XML file like you handling the DOM in the browser, with that I mean being able to use functions like
getElementsByTagName(),createElementandsetAttribute()for instance.
My excuses where my English is not the best, 'cause I'm a dutch guy. I hope that doesn't influence an answer :).
Thanks,