To parse an XML file with JQuery, you can follow these simple steps.
1. Obtain the xml using JQuery Ajax. There are two possible location where the xml file can be located. You have to make sure of your file path.
2. Parse the Ajax Response (your XML file) and append the data to your html code.
Suppose you have a XML file: (download here)
<student_list>
<students>
<student_id>2013001</student_id>
<name>Clare Marie Ciriaco</name>
</students>
<students>
<student_id>2013002</student_id>
<name>Jane Doe</name>
</students>
<students>
<student_id>2013003</student_id>
<name>John Fitzgerald</name>
</students>
</student_list>
To parse it,
OUTPUT:
Friday, 19 April 2013
Friday, 12 April 2013
java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
When running JSF with Tomcat 7.0, I stumbled upon this error. Turns out, you have to put the following JARS in Tomcat's library folder before running your project.
My Path: C:\Program Files\apache-tomcat-7.0.23\apache-tomcat-7.0.23\lib
Note: This may vary from different users
My Path: C:\Program Files\apache-tomcat-7.0.23\apache-tomcat-7.0.23\lib
Note: This may vary from different users
- el-api-2.2.jar
- el-impl-2.2.jar
Subscribe to:
Posts (Atom)