So is this a bug in Castor?  Should there be a Jira
issue created for this?
Thanks.
-Saladin

--- Werner Guttmann <[EMAIL PROTECTED]> wrote:

> Yes, it looks like the class that internally
> converts the data
> represented by the Dom Node instance is *not*
> capable of dealing with
> namespaces. Let me have a word with some of my peer
> committers, and I
> will be back.
> 
> Werner
> 
> Werner 
> 
> > -----Original Message-----
> > From: S. Sharif [mailto:[EMAIL PROTECTED] 
> > Sent: Dienstag, 20. Februar 2007 22:35
> > To: [email protected]
> > Subject: [castor-user] Problem with the 
> > Unmarshaller.unmarshal(org.w3c.dom.Node node)
> method
> > 
> > 
> > Hi,
> > 
> > I am trying to unmarshall a org.w3c.dom.Document
> object using 
> > the Unmarshaller.unmarshal(org.w3c.dom.Node node)
> method.
> > 
> > So I populate an xml into a org.w3c.dom.Document
> object and 
> > then I pass it into the unmarshal() method, but
> then I get 
> > the following error:
> > 
> > unable to find FieldDescriptor for 'CRITERIAID' in
> 
> > ClassDescriptor of CRITERIAINPUT at
> >
>
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:622)
> > at
> >
>
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:768)
> > ....etc.
> > 
> > 
> > But now when I pass in the exact same xml using a
> FileReader 
> > into the Unmarshaller.unmarshal(java.io.Reader
> reader) It 
> > works fine without giving any errors.
> > 
> > Here is the input xml
> > 
> > <Document
> > xmlns="http://www.newjava.com/apps/doRequest";>
> >   <CRITERIAINPUT_LIST>
> >     <CRITERIAINPUT>
> >       <CRITERIAID>1</CRITERIAID>
> >     </CRITERIAINPUT>
> >   </CRITERIAINPUT_LIST>
> > 
> > [... more xml tags ...] 
> > 
> > </Document>
> > 
> > 
> > It is interesting to note that when I modify the
> above xml 
> > and remove the xmlns namespace from the root
> <Document> tag
> > 
> > <Document>
> >   <CRITERIAINPUT_LIST>
> >     <CRITERIAINPUT>
> >       <CRITERIAID>1</CRITERIAID>
> >     </CRITERIAINPUT>
> >   </CRITERIAINPUT_LIST>
> > 
> > [... more xml tags ...] 
> > 
> > </Document>
> > 
> > 
> > and then I run the code with the
> > unmarshal(org.w3c.dom.Node node) , it works just
> fine without 
> > giving any errors.
> > 
> > Any idea, why the unmarshal(org.w3c.dom.Node node)
> method is 
> > not working when passing in Dom object containing
> a namespace?
> > 
> > Thanks.
> > 
> > -Saladin
> > 
> > 
> >
>
**********************************************************
> > * Saladin Sharif
> > * e-mail:  [EMAIL PROTECTED]
> > * Visit homepage @
> http://gaia.ecs.csus.edu/~sharifs
> >
>
**********************************************************
> > 
> > 
> >  
> >
>
______________________________________________________________
> > ______________________
> > Sucker-punch spam with award-winning protection. 
> > Try the free Yahoo! Mail Beta.
> >
>
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> > 
> >     http://xircles.codehaus.org/manage_email
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 



 
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to