You can display data obtained from various formats and sources in your application. This recipe shows you how to display a sample set of Student Records obtained from an XML file.
Copy the full code of this recipe from the
code/04/xml-content sources folder. You can launch this code using the URL
student.xmlfile with the student node having attributes
studentnode has multiple
coursechild elements. Each
courseelement has a
nameattribute and a child
markselement as shown in the following code:
<?xml version="1.0" encoding="utf-8" ?> <students> <student name="Alex" age="22"> <course name="HTML5"> <marks>89</marks> </course> ...