Hello,
I have an XSD similar to the following lines.
where <XYZ> is the following.
<XYZ> has more elements, but I have pasted a crisp version in this
thread. There can be a sequence of 'Child' elements in the XML file.
I am able to validate the XML file for this XSD. I am able to parse the FileInformation, User and ChildrenCount.
The legacy system I am working with some how picks up every child from the XML File. It presents the child as a
String to me. I have to parse the child using the <xs:element name="Child"> and create a unmarshalled
java object.
I have access to the XSD as File or urlOfXSD. The output should be of java type Child, an equivalent of Child element.
The following code does not understand the child string for the reason that it understands only the root element of an XSD. So I get a error as in the last of this thread.
My question is how to parse a string using a child element of an XSD? How to access the child element from urlOfXsd or XSD File ?
Thanks,
Rajesh