This is one nitpicky customer! What prefix exactly does he expect? It is for this kind of cases that we introduced XmlOptions.setSaveSuggestedPrefixes(). As far as generating XML documents based on an algorithm embedded in the <appinfo> elements, this is very interesting, never heard of that before, do you really get to generate documents that are GB in size in practical situations?
Thanks, Radu -----Original Message----- From: Jim McMaster [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 3:23 PM To: [email protected] Subject: RE: Problems with namespace prefixes in version 2 -----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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

