Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript
hello all
how i can get the contents of an xml file from a url and display the contents in a nice format in javascript
can any one help me
thanks
Posted 31-Jan-13 1:36am
Comments
JemiM at 31-Jan-13 6:40am
   
Try to return as JSON format.You can easily manipulate the JSon data than XML using javascript.
sarsoraa at 31-Jan-13 8:46am
   
thanks for quick response
but could you tell me as EXample how i can return as json format
JemiM at 31-Jan-13 10:33am
   
which technology u are using for getting the data? restful webservice?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This page from w3schools tells you exactly that - XML Parser[^].
 
Use may also use jQuery.get()[^] to get the xml from any url and then parse it, jQuery has quite a helpful methods to do such things very easily.
 
Hope this helps!
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 584
1 Maciej Los 275
2 DamithSL 233
3 Sergey Alexandrovich Kryukov 209
4 BillWoodruff 200
0 OriginalGriff 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100