users@jaxb.java.net

Re: noob question

From: Meredith Gregory <lgreg.meredith_at_gmail.com>
Date: Thu, 9 Oct 2008 10:06:55 -0700

Aleksei,
Actually, i found the documentation. i see how to use it, now. However, i
still think that it would be more consistent and provide a valuable quality
assurance check if you could run jaxb on the schema schema and verify that
the result is essentially iso to jaxb itself.

Best wishes,

--greg

On Thu, Oct 9, 2008 at 9:55 AM, Meredith Gregory
<lgreg.meredith_at_gmail.com>wrote:

> Aleksei,
> Thanks for the response. i wasn't exactly sure how to use the xsom. i
> tried following the pattern for processing other schema
>
> - instantiate a JAXBContext with newInstance
> - create an unmarshaller
> - create a stream for the schema file
> - unmarshal from the stream
>
>
> i tried instantiating a JAXBContext supplying the name jar containing xsom
> to the newInstance method and that fails because there is no ObjectFactory
> in the jar that comes with the download. Likewise i tried supplying an array
> of classes containing only the XSSchema class. That also fails. Is there
> documentation on how to use xsom to unmarshal a schema from a stream?
>
> Best wishes,
>
> --greg
>
>
> On Thu, Oct 9, 2008 at 1:41 AM, Aleksei Valikov <valikov_at_gmx.net> wrote:
>
>> Hi.
>>
>>
>> > Jaxbians,
>> > i need to process schema files themselves. i thought i could just pull
>> down
>> > the schema schema from the W3C, run jaxb on that and be on my way. That
>> > breaks in all kinds of ways. So... i'm wondering what the best practice
>> is
>> > in this case.
>>
>> Use XSOM or javax.xml.validation.* (for instance
>> javax.xml.validation.SchemaFactory).
>>
>> Bye.
>> /lexi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>



-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com