Title: Message

I have an XML file with an element that has something like this:

  <someTag xsi:type="ns:SomeType>
      <ns:tagFred>stuff</ns:tagFred>
      <ns:tagWilma>more stuff</ns:tagWilma>
  </someTag>

When I try to unmarshal, this XML causes this error:

org.xml.sax.SAXException: unable to find FieldDescriptor for 'tagFred' in ClassDescriptor of SomeType
	at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1566)
	at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1149)
	at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)

Any clues?

 

Reply via email to