-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, May 24, 2005 4:17 PM, Lawrence Jones
<mailto:[EMAIL PROTECTED]> wrote:

> Hi Jim
> 
> One further thing. The prefixes used in the schema document and the
> prefixes used in the instance document do not have to be the same.
> The only thing that matters is the combination of the namespace
> identified by the prefix and the local name (this is all that is
> required by the XML Infoset). So in your instance document you are
> free to make up whatever prefixes you want. 
> 
I could make up my own prefix, but I have a nitpicky customer who
would complain if it didn't match the one in the schema.

> Also may I ask why you don't use the XmlBean itself to produce the
> instance document? 
> 
The annotations in the schema define method calls to get values to
plug into the instance document, and allow for loops to generate
repeated elements.  I only compile the schema document, not the
instance document.  If I tried to do so, I would likely have memory
problems, since the instance document could be several gigabytes in
size.

- -- 
Jim McMaster
mailto:[EMAIL PROTECTED]


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQpOpOGaP5l7/atSJEQJrRgCcC9DvoNuXc3190y0RJgWrruZZoNAAoMFs
CXngD1HY0BRs+Xmaps2Q+ExT
=dsUT
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to