Re: Missing the XML header

2006-12-14 Thread Eric Vasilik
The reason for this is that when saving out chars, the encoding has not been established, while when saving out bytes, it has. - Eric On 12/14/06, Cezar Andrei <[EMAIL PROTECTED]> wrote: The xml declaration is not used when saving to a text or Writer, but it will be used when saving into an Out

RE: Missing the XML header

2006-12-14 Thread Cezar Andrei
The xml declaration is not used when saving to a text or Writer, but it will be used when saving into an OutputStream. Cezar > -Original Message- > From: kris16 [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 14, 2006 7:07 AM > To: user@xmlbeans.apache.org > Subject: Missing the XML

RE: Error Duplicate attribute group

2006-12-14 Thread Cezar Andrei
There is a -cp switch for this. If a schema is split in two: s1 and s2, where s1 is stand alone (i.e. doesn't have references to items in s2) and s2 uses item from s1 by reference so that there will not be multiple definitions of the same name in the s1 + s2 union, they can be compiled separately u

Missing the XML header

2006-12-14 Thread kris16
Hi, when i print out my XMK document the xml header is not shown (). I use the command : String xmlStr = newListItem.xmlText(opts); System.out.println(xmlStr); The result: http://www.openapplications.org/oagis/9";> 2006-12-14+01:00 It prints the whole document but n

Re: Error Duplicate attribute group

2006-12-14 Thread kris16
Hi again, I tried to solve this problem by running the scomp command twice. Generating two different jar files, one for getitemmaster and one for listitemmaster, and it seems to work. The common parts like codelists, currencycode etc. are included in both jarfiles and thats not so nice. I noticed