users@jaxb.java.net

Re: Find out Object's real Class?

From: Malachi de Ælfweald <malachid_at_gmail.com>
Date: Wed, 5 Sep 2007 10:42:05 -0700

Well, as you can tell from "com.sun.*" it is internal... In this case, it is
most likely in the rt.jar of your JDK.

I *think* what you are wanting is the actual object created by the element,
not the xml element itself - right? Can you post your code snippet?

Malachi

On 9/5/07, Christopher Holm <them4z_at_googlemail.com> wrote:
>
> Hello world,
> I'm having problems with an Object I get from an xml file via JAXB and
> need a few pointers.
>
> toString gives me just
> [real_cst: null]
> and getClass tells me it is an xerces Object:
> class com.sun.org.apache.xerces.internal.dom.ElementNSImpl;
>
> But I don't think I have even installed Xerces, how can this be, how
> do I find out the real type of the object? Any pointers in the right
> direction are very welcome!
>
> (And no, this time it's not a JAXBElement (;)
>
>
> --
> Mit freundlichen Grüßen,
> Christopher "m4z" Holm
>