In the last post we saw how to serialize an object into XML content. Here we are going to just do the reverse of it. So create a project named XMLBinding2 as described in the last post. Copy past the following XSD and the sample XML to your project as shown in the screenshot. student-marks.xsd <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xml.netbeans.org/schema/student-marks" xmlns:tns="http://xml.netbeans.org/schema/student-marks" elementFormDefault="qualified"> <xsd:element name="report"> <xsd:complexType> <xsd:sequence> <xsd:element name="students"> <xsd:complexType> <xsd:sequence> <xsd:element name="student" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> ...
All about Java Programming & Rich Client Application development using Netbeans