Hi Robert,

It's not a bug...you are using a static unmarshal method, so any of your
changes done on the Unmarshaller will not be accessible from the static
method.

--Keith

[EMAIL PROTECTED] wrote:
> 
> I am trying to parse a file that may have additional elements that are unforeseen.  
> I do not need to parse those elements.  Therefore, I tried telling the unmarshaller 
> to ignore extra elements.   It does not seem to work.
> 
> Here's the exception:
> 
> org.xml.sax.SAXException: unable to find FieldDescriptor for 'SOME_TAG' in 
> ClassDescriptor of myType{file: [not available]; line: 60; column: 18}
> 
> Here's the code:
> 
>  Unmarshaller unmarshaller;
> 
>  unmarshaller = new Unmarshaller();
>  unmarshaller.setIgnoreExtraAttributes(true);
>  unmarshaller.setIgnoreExtraElements(true);
>  reader = new FileReader(filename);
>  myobj = (MyType)unmarshaller.unmarshal(MyType.class, reader);
> 
> Is this a bug?  I am using he CVS version of the new 0.9.5.3 Castor from a couple of 
> weeks ago.
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to