users@jaxb.java.net

Re: How to retrieve attributes of XML elements?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 10 Nov 2004 11:28:53 -0800

Karr, David wrote:
> For instance, my sample XML file has a root element with attributes
> "xsmlns:xsi" and "xsi:noNamespaceSchemaLocation". These are not
> specified in the schema (logically), but I need to have my JAXB objects
> contain everything from the XML file, so I can reproduce it later. Is
> JAXB not good for completely reproducing the original XML file? How
> does it deal with comments, for instance?

JAXB-generated code generally does not capture what was not specified in
the schema. This includes those xsi attributes and comments.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net