I am trying to write my helloworld code using javascript and html.
So, I thought of picking up a project and iterating from there.
Lets say, I have a path to xml file.
1) Display the contents of the xml file as it is (i.e treat it as a text file irrespective of the markup)
Thats it.. actually.. there is no step 2 🙂
But, I have very limited background in html as well.
can someone help me what will be the helloworld.html (or helloworld.js) be so that I can run it on the browser??
I would really really appreciate it
Many thanks
Just to answer your question with a somewhat usable answer, and what I think most developers probably would do in the real world, is to use a library like JQuery.
In this case, the code is straightforward:
Your HTML:
Your Javascript:
You need to make sure that your test xml file is served on the same domain as your javascript file.