From usergary77@example.org Thu Dec 01 08:14:55 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 5949 invoked from network); 1 Dec 2005 08:14:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Dec 2005 08:14:55 -0000 Received: (qmail 39149 invoked by uid 500); 1 Dec 2005 08:14:53 -0000 Delivered-To: gary77@example.org Received: (qmail 39129 invoked by uid 500); 1 Dec 2005 08:14:52 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 39118 invoked by uid 99); 1 Dec 2005 08:14:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 00:14:52 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO mail126.messagelabs.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Dec 2005 00:16:18 -0800 X-VirusChecked: Checked X-Env-Sender: gary77@example.org X-Msg-Ref: server-13.tower-126.messagelabs.com!1133424866!10415264!1 X-StarScan-Version: 83.161.120.155; banners=-,-,- X-Originating-IP: [83.161.120.155] Received: (qmail 4416 invoked from network); 1 Dec 2005 08:14:27 -0000 Received: from unknown (HELO debobims01.emea.att.com) (83.161.120.155) by server-13.tower-126.messagelabs.com with SMTP; 1 Dec 2005 08:14:27 -0000 Received: from debobmsx02.emea.att.com ([83.161.120.155]) by debobims01.emea.att.com with Microsoft SMTPSVC570.397.2245); Thu, 1 Dec 2005 09:03:07 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: xmlbeans ant task Date: Thu, 1 Dec 2005 08:57:39 +0100 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: xmlbeans ant task Thread-Index: AcX1wt0KFcJPf+e3SbClTyq07S6kFgAie1Ww From: "Cordes, Hans-Dieter" <gary77@example.org> To: <gary77@example.org> X-OriginalArrivalTime: 01 Dec 2005 08:03:07.0203 (UTC) FILETIME=[A9D32930:01C5F64D] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dennis, many thanks: Your approach did the trick! (I am not yet too familiar = with ANT) Regards, Hans-Dieter Cordes -----Original Message----- From: Sherman, Dennis (END-CHI) [mailto:gary77@example.org] Sent: Mittwoch, 30. November 2005 16:29 To: 'gary77@example.org' Subject: RE: xmlbeans ant task We do conditional compilation like this: <!-- - - - - - - - - - - - - - - - - -=20 target: gen-xmlbeans - - - - - - - - - - - - - - - - - --> <target name=3D"gen-xmlbeans" depends=3D"init, = set-schema.compile.notneeded" unless=3D"schema.compile.notneeded" > <xmlbean schema=3D"${module}.xsd" srcgendir=3D"${src.dir}"=20 destfile=3D"${dist.dir}/${module}.jar" classpathref=3D"compile.classpath" debug=3D"true" verbose=3D"true"/> </target> <!-- - - - - - - - - - - - - - - - - -=20 target: set-schema.compile.notneeded compare the schema datestamp to the jar file datestamp - - - - - - - - - - - - - - - - - --> <target name=3D"set-schema.compile.notneeded"> <uptodate property=3D"schema.compile.notneeded"> <srcfiles dir=3D"${basedir}" includes=3D"*.xsd"/> <mapper type=3D"glob" from=3D"*.xsd" = to=3D"${dist.dir}/*.jar" /> </uptodate> </target> It's an ant thing, not an xmlbeans thing. -- Dennis R. Sherman Endeavor Information Systems 570.397.2245 gary77@example.org http://www.endinfosys.com=20 -----Original Message----- From: Cordes, Hans-Dieter [mailto:gary77@example.org] Sent: Wednesday, November 30, 2005 9:04 AM To: gary77@example.org Subject: xmlbeans ant task Hello, I use the "xmlbean" ant task (in the context of XMLBeans-1.0.3; I have = to use this version for compatibility reasons) like this: <xmlbean classpath=3D"${XMLBeans.jar}" schema=3D"${aots.xsd.dir}" destfile=3D"${jar.dir}/Schema.AOTS.jar" =09 srcgendir=3D"${aots.xmlbeans.gen.dir}/src" classgendir=3D"${aots.xmlbeans.gen.dir}/classes"/> When I run that task in my "build" target, the whole process of = generating xmlbeans starts again, even if I did that a minute before. Is there a = way to do the xmlbeans generation conditionally, i.e. only if the XSD file has changed? And then a second question: Is there a way to search in the XMLBeans = user mailing list (http://mail-archives.apache.org/mod_mbox/xmlbeans-user/)? There is probably some good stuff in there, but without a search = capability it is difficult to get your questions answered. Thanks in advance for your help. Regards, Hans-Dieter Cordes --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Thu Dec 01 08:35:49 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 20475 invoked from network); 1 Dec 2005 08:35:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Dec 2005 08:35:48 -0000 Received: (qmail 55305 invoked by uid 500); 1 Dec 2005 08:35:46 -0000 Delivered-To: gary77@example.org Received: (qmail 55284 invoked by uid 500); 1 Dec 2005 08:35:46 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 55273 invoked by uid 99); 1 Dec 2005 08:35:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 00:35:46 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO rgg.pruftechnik.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 00:37:14 -0800 Received: from rgg.pruftechnik.com (localhost [83.161.120.155]) by rgg.pruftechnik.com (8.13.3/8.13.3) with ESMTP id jB18ZLfE028720 for <gary77@example.org>; Thu, 1 Dec 2005 09:35:21 +0100 (CET) Received: (from localhost) by rgg.pruftechnik.com (MSCAN) id 1/rgg.pruftechnik.com/smtp-gw/mscan; Thu Dec 1 09:35:18 2005 To: gary77@example.org Subject: "start from both" feature MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: <gary77@example.org> From: gary77@example.org Date: Thu, 1 Dec 2005 09:35:14 +0100 X-MIMETrack: Serialize by Router on dptrv/Ravensburg/pruftechnik(Release 6.5.1|January 21, 2004) at 01.12.2005 09:35:15, Serialize gary77@example.org 09:35:15 Content-Type: multipart/alternative; boundary="=_alternative 002EFD9BC12570CA_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 002EFD9BC12570CA_= Content-Type: text/plain; charset="US-ASCII" Hi. Is there a way to start from both Java and schema, and customize the binding rules between Java classes and the schema? I know, that this feature has already been planned, but just haven't seen its current state. Thanks. --=_alternative 002EFD9BC12570CA_= Content-Type: text/html; charset="US-ASCII" <br><font size=3 face="Times New Roman">Hi.</font> <br> <br><font size=3 face="Times New Roman">Is there a way to start from both Java and schema, and customize the binding rules between Java classes and the schema? </font> <br><font size=3 face="Times New Roman">I know, that this feature has already been planned, but just haven't seen its current state. </font> <br> <br><font size=3 face="Times New Roman">Thanks.</font> --=_alternative 002EFD9BC12570CA_=-- From usergary77@example.org Thu Dec 01 21:34:05 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 92311 invoked from network); 1 Dec 2005 21:34:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Dec 2005 21:34:05 -0000 Received: (qmail 49403 invoked by uid 500); 1 Dec 2005 21:33:58 -0000 Delivered-To: gary77@example.org Received: (qmail 49327 invoked by uid 500); 1 Dec 2005 21:33:58 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 49297 invoked by uid 99); 1 Dec 2005 21:33:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 13:33:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO merc94.na.sas.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 13:35:24 -0800 Received: from MERC27.na.sas.com ([83.161.120.155]) by merc94.na.sas.com with InterScan Messaging Security Suite; Thu, 01 Dec 2005 16:33:33 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Problem (re)Setting Dates Date: Thu, 1 Dec 2005 16:33:32 -0500 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem (re)Setting Dates Thread-Index: AcX1/HDbnSNj/jh7Rn+lkiUhKTTpUgAwkk7g From: "Chris Dole" <gary77@example.org> To: <gary77@example.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Please disregard this question. I was doing something silly: Setting the = modified date after putting the modified data back into the document.=20 -----Original Message----- From: Chris Dole [mailto:gary77@example.org]=20 Sent: Wednesday, November 30, 2005 5:22 PM To: gary77@example.org Subject: Problem (re)Setting Dates Hello, I have successfully used the generated code from XMLBeans to read and = write from XML files, with one small caveat. I have a date attribute = that gets set to the first value that comes in, but subsequent sets do = not override the first value. I even tried calling the "unset" method = first, but to no avail. Textual elements and attributes all get new = values applied, but not the dates. Can someone scan the information below and tell me what I need to do = differently? Many thanks, Chris ############################## A fragment of my schema: <xsd:element name=3D"BusObj"> <xsd:annotation> <xsd:documentation>BusObj is the "base class" that contains fields common to all other business objects.</xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref=3D"boc:Title"/> <xsd:element ref=3D"boc:DescriptionText"/> </xsd:sequence> <xsd:attribute ref=3D"boc:Id"/> <xsd:attribute ref=3D"boc:OwnerId"/> <xsd:attribute ref=3D"boc:Shared"/> <xsd:attribute ref=3D"boc:DateCreated"/> <xsd:attribute ref=3D"boc:DateModified"/> </xsd:complexType> </xsd:element> =09 <xsd:attribute name=3D"DateModified" type=3D"xsd:dateTime"/> It generates a BusObj class with the following salient methods: /** * Sets the "DateModified" attribute */ public void setDateModified(java.util.Calendar dateModified) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target =3D null; target =3D = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DATEMODI= FIED$12); if (target =3D=3D null) { target =3D = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DATEMODIF= IED$12); } target.setCalendarValue(dateModified); } } =20 /** * Sets (as xml) the "DateModified" attribute */ public void xsetDateModified(org.apache.xmlbeans.XmlDateTime = dateModified) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlDateTime target =3D null; target =3D = (org.apache.xmlbeans.XmlDateTime)get_store().find_attribute_user(DATEMODI= FIED$12); if (target =3D=3D null) { target =3D = (org.apache.xmlbeans.XmlDateTime)get_store().add_attribute_user(DATEMODIF= IED$12); } target.set(dateModified); } } =20 /** * Unsets the "DateModified" attribute */ public void unsetDateModified() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(DATEMODIFIED$12); } } Here is my wrapper that I call to set the date using a java.util.Date as = the input for the XmlCalendar which is then the input for the XML date = value. // My wrapper around the XMLBeans=20 private BusObj _xmlbObj; public void setDateModified(Date dateModified) { synchronized(_xmlbObj) { _xmlbObj.unsetDateModified(); _xmlbObj.setDateModified(new XmlCalendar(dateModified)); } } Chris Dole SAS Institute, Inc. Member Applications Staff gary77@example.org 570.397.2245 SAS... The Power to Know --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Mon Dec 05 04:55:11 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 23605 invoked from network); 5 Dec 2005 04:55:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 04:55:11 -0000 Received: (qmail 31837 invoked by uid 500); 5 Dec 2005 04:55:10 -0000 Delivered-To: gary77@example.org Received: (qmail 31686 invoked by uid 500); 5 Dec 2005 04:55:09 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 31670 invoked by uid 99); 5 Dec 2005 04:55:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 20:55:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO mailgw3.ericsson.se) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 20:55:08 -0800 Received: from esealmw128.eemea.ericsson.se (unknown [83.161.120.155]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 426F84F000A for <gary77@example.org>; Mon, 5 Dec 2005 05:53:42 +0100 (CET) Received: from esealmw126.eemea.ericsson.se ([83.161.120.155]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.211); Mon, 5 Dec 2005 05:51:26 +0100 Received: from emyklnt164.ao.ericsson.se ([83.161.120.155]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.211); Mon, 5 Dec 2005 05:51:26 +0100 Received: by emyklnt164.ao.ericsson.se with Internet Mail Service (5.5.2657.72) id <WV6SQ05F>; Mon, 5 Dec 2005 12:51:25 +0800 Message-ID: <54F404A6467B0242BBBE0E5EB405C295017B2467@emyklmw104> From: "Christophe Bouhier (MC/ECM)" <gary77@example.org> To: "'gary77@example.org'" <gary77@example.org> Subject: Identical elements from different namespaces. Date: Mon, 5 Dec 2005 12:51:18 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-OriginalArrivalTime: 05 Dec 2005 04:51:26.0877 (UTC) FILETIME=[8CBFACD0:01C5F957] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, I am relative new user to xmlbeans. I have used it successfully for the last year with our current .xsd but now I need to extend the functionality of our application whereby I need some help/advise. Our primary schema is an XSD for the popular RSS standard which has no target namespace. Recently www.apple.com has added some propriatary elements which are defined here: http://phobos.apple.com/static/iTunesRSS.html Combining the two I have to process xml with elements like this: ... <image height="" width=""/> <itunes:image href="..."/> ... So now I have colliding element names from a "notargetnamespace" and the itunes name space. I have tried to define both elements into a single xsd but the xmlbeans compiler complains about uniques of elements. Before I post my attempt, I would like to ask: Do I need to bother and try to define the two namespaces into one single schema?, or shall I use two schema's? (Which means I have to parse the document twice and will have 2 XmlObjects. I would be gratefull to whoever can provide me with help on how to tackle this problem. It comes to mind That is situation should arise in many case when dealing with multiple namespaces. Thank You , Christophe Bouhier. www.jpodder.com --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Mon Dec 05 19:02:39 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 93610 invoked from network); 5 Dec 2005 19:02:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 19:02:39 -0000 Received: (qmail 15476 invoked by uid 500); 5 Dec 2005 19:02:37 -0000 Delivered-To: gary77@example.org Received: (qmail 15441 invoked by uid 500); 5 Dec 2005 19:02:36 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 15414 invoked by uid 99); 5 Dec 2005 19:02:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 11:02:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO sccrmhc13.comcast.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 11:02:34 -0800 Received: from [83.161.120.155] (c-24-11-134-225.hsd1.mi.comcast.net[83.161.120.155]) by comcast.net (sccrmhc13) with ESMTP id <20051205190211013003jia4e>; Mon, 5 Dec 2005 19:02:12 +0000 Message-ID: <gary77@example.org> Date: Mon, 05 Dec 2005 14:02:04 -0500 From: Dan Diephouse <gary77@example.org> User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: gary77@example.org Subject: Jar Naming Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hiya, Can the jar naming on xmlbeans be changed in the future? In the maven repo they're called "xbean-xxx.jar". With the XBean project coming to geronimo this can be really confusing. I'd like to see "xmlbeans-xxx.jar". Cheers, - Dan -- Dan Diephouse Envoi Solutions LLC http://netzooid.com --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Mon Dec 05 19:55:55 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 23407 invoked from network); 5 Dec 2005 19:55:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 19:55:55 -0000 Received: (qmail 88728 invoked by uid 500); 5 Dec 2005 19:55:53 -0000 Delivered-To: gary77@example.org Received: (qmail 88701 invoked by uid 500); 5 Dec 2005 19:55:52 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 88673 invoked by uid 99); 5 Dec 2005 19:55:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 11:55:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO mailgw2a.lmco.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 11:55:52 -0800 Received: from emss01g01.ems.lmco.com (relay1.ems.lmco.com [83.161.120.155]) by mailgw2a.lmco.com (8.12.10/8.12.10) with ESMTP id jB5JTiPq000503 for <gary77@example.org>; Mon, 5 Dec 2005 14:55:29 -0500 (EST) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1X6 #30875) id <gary77@example.org> for gary77@example.org; Mon, 05 Dec 2005 11:27:38 -0800 (PST) Received: from EMSS01I00.us.lmco.com ([83.161.120.155]) by lmco.com (PMDF V6.1-1X6 #30875) with ESMTP id <gary77@example.org> for gary77@example.org; Mon, 05 Dec 2005 11:27:03 -0800 (PST) Received: from EMSS01M15.us.lmco.com ([83.161.120.155]) by EMSS01I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 05 Dec 2005 11:27:03 -0800 Date: Mon, 05 Dec 2005 11:27:03 -0800 From: "Jones, Damon" <gary77@example.org> Subject: XmlCursor - equivalent setObject() method? To: gary77@example.org Message-id: <gary77@example.org> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-type: multipart/alternative; boundary="Boundary_(ID_KBn0dRwKlbWTteLaUaXFyQ)" Thread-Topic: XmlCursor - equivalent setObject() method? Thread-Index: AcX50d4F5kF0hoZYS+68s3Lz2kwmng== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 05 Dec 2005 19:27:03.0531 (UTC) FILETIME=[DF08E3B0:01C5F9D1] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Boundary_(ID_KBn0dRwKlbWTteLaUaXFyQ) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Hello, I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I would like to add the new XmlObject into that position. Is there a way to do this. Thanks, Damon Jones --Boundary_(ID_KBn0dRwKlbWTteLaUaXFyQ) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0"> <TITLE>XmlCursor - equivalent setObject() method?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=2 FACE="Arial">Hello,</FONT> </P> <P><FONT SIZE=2 FACE="Arial">I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I would like to add the new XmlObject into that position.</FONT></P> <P><FONT SIZE=2 FACE="Arial">Is there a way to do this.</FONT> </P> <P><FONT SIZE=2 FACE="Arial">Thanks,</FONT> <BR><FONT SIZE=2 FACE="Arial">Damon Jones</FONT> </P> </BODY> </HTML> --Boundary_(ID_KBn0dRwKlbWTteLaUaXFyQ)-- From usergary77@example.org Mon Dec 05 20:05:07 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 27345 invoked from network); 5 Dec 2005 20:05:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 20:05:07 -0000 Received: (qmail 11942 invoked by uid 500); 5 Dec 2005 20:05:05 -0000 Delivered-To: gary77@example.org Received: (qmail 11925 invoked by uid 500); 5 Dec 2005 20:05:05 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 11914 invoked by uid 99); 5 Dec 2005 20:05:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 12:05:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 12:05:04 -0800 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jB5K4htj015558 for <gary77@example.org>; Mon, 5 Dec 2005 12:04:43 -0800 Received: from repbex02.amer.bea.com ([83.161.120.155]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Dec 2005 12:04:43 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: How does xmlbeans marshall object graphs MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 5 Dec 2005 12:04:42 -0800 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How does xmlbeans marshall object graphs Thread-Index: AcXuKXCIiS9/QMNqRPG/4rj1D1X1vQLrU9Rw From: "Radu Preotiuc-Pietro" <gary77@example.org> To: <gary77@example.org> X-OriginalArrivalTime: 05 Dec 2005 20:04:43.0285 (UTC) FILETIME=[21F3FC50:01C5F9D7] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think you have answered the question yourself. XML in general cannot express object graphs, just tree structures. XMLBeans being a generic XML tool has this constraint too, so you basically need to encode the graph structure inside your app (and maybe use key/keyref constraints if you want to enforce this using validation). Thanks, Radu -----Original Message----- From: olle pettersson [mailto:gary77@example.org]=20 Sent: Sunday, November 20, 2005 3:23 PM To: gary77@example.org Subject: How does xmlbeans marshall object graphs Hi, I have tried to save an xml-document with one Java object occuring in two different places. xmlbeans just copies the object (creates two identical xml tags) rather than using some kind of reference. How does xmlbeans handle whole object graphs? Thanks, --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Mon Dec 05 20:14:51 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 31479 invoked from network); 5 Dec 2005 20:14:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 20:14:51 -0000 Received: (qmail 33344 invoked by uid 500); 5 Dec 2005 20:14:49 -0000 Delivered-To: gary77@example.org Received: (qmail 33327 invoked by uid 500); 5 Dec 2005 20:14:48 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 33301 invoked by uid 99); 5 Dec 2005 20:14:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 12:14:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 12:14:47 -0800 Received: from ussjfe02.amer.bea.com (ussjfe02.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jB5KEPtl019228 for <gary77@example.org>; Mon, 5 Dec 2005 12:14:26 -0800 Received: from repbex02.amer.bea.com ([83.161.120.155]) by ussjfe02.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Dec 2005 12:14:25 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: Schema compilation to some specific package MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 5 Dec 2005 12:14:25 -0800 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Schema compilation to some specific package Thread-Index: AcX1+3QnpVwAG2OlRoigGR7Kq34t8wD2+faQ From: "Radu Preotiuc-Pietro" <gary77@example.org> To: <gary77@example.org> X-OriginalArrivalTime: 05 Dec 2005 20:14:25.0547 (UTC) FILETIME=[7D021DB0:01C5F9D8] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think you are getting a little bit confused here, let me explain. XmlBeans does *not* compile Java classes to schema.system package (you give TypeSystemHolder as example, but that is a special case, the only one class that gets generated there and it doesn't depend on your Schema). They are generated (and compiled) in a package name that is derived from the targetNamespace of your Schema using a simple algorithm, or the package "noNamespace" if there is no targetNamespace. Use the "src" option to scomp to see how Java types are generated. If you want a different package than the default, you should use .xsdconfig configuration files. The "typesystemname" option should really not be necessary in 99.9% of cases, so don't bother with it for the time being. Hope this helps, Radu -----Original Message----- From: news [mailto:gary77@example.org] On Behalf Of Ben Sent: Wednesday, November 30, 2005 6:53 AM To: gary77@example.org Subject: Schema compilation to some specific package Hi, I am trying to generate sources for a schema into a specific package. My problem is that XMLBeans always compile schema classes/src to schema.system package. (TypeSystemHolder classe for instance) The provided option typesystemname=3D"mynamespace" only append the = option value to then original package path -> schema.system.mynamespace (tested in version 1.04 and 2.1.0). Is there a way to generate everything in a specific package? Cheers, Ben --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Mon Dec 05 22:05:14 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 15584 invoked from network); 5 Dec 2005 22:05:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 22:05:13 -0000 Received: (qmail 16682 invoked by uid 500); 5 Dec 2005 22:05:11 -0000 Delivered-To: gary77@example.org Received: (qmail 16657 invoked by uid 500); 5 Dec 2005 22:05:11 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 16626 invoked by uid 99); 5 Dec 2005 22:05:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:05:11 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:05:10 -0800 Received: from ussjfe02.amer.bea.com (ussjfe02.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jB5M4gu1020453 for <gary77@example.org>; Mon, 5 Dec 2005 14:04:49 -0800 Received: from repbex02.amer.bea.com ([83.161.120.155]) by ussjfe02.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Dec 2005 14:04:48 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: "start from both" feature MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F9E7.E8287275" Date: Mon, 5 Dec 2005 14:04:47 -0800 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: "start from both" feature Thread-Index: AcX2Uj3Q8nMf/CJ6SXa/2bxRK4BocADk90RA From: "Radu Preotiuc-Pietro" <gary77@example.org> To: <gary77@example.org> X-OriginalArrivalTime: 05 Dec 2005 22:04:48.0359 (UTC) FILETIME=[E8830770:01C5F9E7] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5F9E7.E8287275 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This feature I think has been deemed out-of-scope for XmlBeans. The problem is it would make it impossible to ensure all the XmlBeans features work consistently with generated code and pre-existing code, so it would confuse matters. XmlBeans does the hard job of creating Java types based on the Schema, and then it's user's responsibility to then create the adapters, is pretty much how this goes. =20 Radu -----Original Message----- From: gary77@example.org [mailto:gary77@example.org]=20 Sent: Thursday, December 01, 2005 12:35 AM To: gary77@example.org Subject: "start from both" feature =09 =09 Hi.=20 =09 Is there a way to start from both Java and schema, and customize the binding rules between Java classes and the schema?=20 I know, that this feature has already been planned, but just haven't seen its current state.=20 =09 Thanks. ------_=_NextPart_001_01C5F9E7.E8287275 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2800.1498" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D898535121-05122005><FONT face=3DArial color=3D#0000ff = size=3D2>This=20 feature I think has been deemed out-of-scope for = XmlBeans.</FONT></SPAN></DIV> <DIV><SPAN class=3D898535121-05122005><FONT face=3DArial color=3D#0000ff = size=3D2>The=20 problem is&nbsp;it would make it&nbsp;impossible to ensure all the = XmlBeans=20 features work consistently with generated code and pre-existing code, so = it=20 would confuse matters.</FONT></SPAN></DIV> <DIV><SPAN class=3D898535121-05122005><FONT face=3DArial color=3D#0000ff = size=3D2>XmlBeans does the hard job of creating Java types based on the = Schema,=20 and then it's user's responsibility to then create the adapters, is = pretty much=20 how this goes.</FONT></SPAN></DIV> <DIV><SPAN class=3D898535121-05122005><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D898535121-05122005><FONT face=3DArial color=3D#0000ff = size=3D2>Radu</FONT></SPAN></DIV> <BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft><FONT=20 face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20 gary77@example.org = [mailto:gary77@example.org]=20 <BR><B>Sent:</B> Thursday, December 01, 2005 12:35 AM<BR><B>To:</B>=20 gary77@example.org<BR><B>Subject:</B> "start from both"=20 feature<BR><BR></FONT></DIV><BR><FONT face=3D"Times New Roman" = size=3D3>Hi.</FONT>=20 <BR><BR><FONT face=3D"Times New Roman" size=3D3>Is there a way to = start from both=20 Java and schema, and customize the binding rules between Java classes = and the=20 schema? </FONT><BR><FONT face=3D"Times New Roman" size=3D3>I know, = that this=20 feature has already been planned, but just haven't seen its current = state.=20 </FONT><BR><BR><FONT face=3D"Times New Roman"=20 size=3D3>Thanks.</FONT></BLOCKQUOTE></BODY></HTML> =00 ------_=_NextPart_001_01C5F9E7.E8287275-- From usergary77@example.org Mon Dec 05 22:30:29 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 26606 invoked from network); 5 Dec 2005 22:30:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 22:30:29 -0000 Received: (qmail 85418 invoked by uid 500); 5 Dec 2005 22:30:27 -0000 Delivered-To: gary77@example.org Received: (qmail 85385 invoked by uid 500); 5 Dec 2005 22:30:27 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 85374 invoked by uid 99); 5 Dec 2005 22:30:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:30:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:30:26 -0800 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jB5MU4tj027353 for <gary77@example.org>; Mon, 5 Dec 2005 14:30:04 -0800 Received: from repbex02.amer.bea.com ([83.161.120.155]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Dec 2005 14:30:04 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: Jar Naming MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 5 Dec 2005 14:29:57 -0800 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Jar Naming Thread-Index: AcX5zngyWNETHefDSm2CXKIK+FNPEgAG9hfQ From: "Cezar Andrei" <gary77@example.org> To: <gary77@example.org> X-OriginalArrivalTime: 05 Dec 2005 22:30:04.0548 (UTC) FILETIME=[703B1C40:01C5F9EB] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You're right, we should move to xmlbeans-xxx.jar naming in the next release.=20 Also the xbean_xpath.jar should be renamed to xmlbeans_xpath.jar. It would avoid any naming confusion. Cezar > -----Original Message----- > From: Dan Diephouse [mailto:gary77@example.org] > Sent: Monday, December 05, 2005 1:02 PM > To: gary77@example.org > Subject: Jar Naming >=20 > Hiya, > Can the jar naming on xmlbeans be changed in the future? In the maven > repo they're called "xbean-xxx.jar". With the XBean project coming to > geronimo this can be really confusing. I'd like to see > "xmlbeans-xxx.jar". Cheers, >=20 > - Dan >=20 > -- > Dan Diephouse > Envoi Solutions LLC > http://netzooid.com >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: gary77@example.org > For additional commands, e-mail: gary77@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Mon Dec 05 22:32:53 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 27702 invoked from network); 5 Dec 2005 22:32:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 22:32:53 -0000 Received: (qmail 91213 invoked by uid 500); 5 Dec 2005 22:32:52 -0000 Delivered-To: gary77@example.org Received: (qmail 91040 invoked by uid 500); 5 Dec 2005 22:32:51 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 91013 invoked by uid 99); 5 Dec 2005 22:32:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:32:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ussjmh01.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:32:50 -0800 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [83.161.120.155]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id jB5MWStj028295 for <gary77@example.org>; Mon, 5 Dec 2005 14:32:29 -0800 Received: from repbex02.amer.bea.com ([83.161.120.155]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Dec 2005 14:32:28 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Subject: RE: XmlCursor - equivalent setObject() method? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F9EB.C5FC6269" Date: Mon, 5 Dec 2005 14:32:22 -0800 Message-ID: <gary77@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: XmlCursor - equivalent setObject() method? Thread-Index: AcX50d4F5kF0hoZYS+68s3Lz2kwmngAGOZ0Q From: "Cezar Andrei" <gary77@example.org> To: <gary77@example.org> X-OriginalArrivalTime: 05 Dec 2005 22:32:28.0874 (UTC) FILETIME=[C64182A0:01C5F9EB] X-PMX-Version: 83.161.120.155621, Antispam-Engine: 83.161.120.155, Antispam-Data: 283.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5F9EB.C5FC6269 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The equivalent of XmlObject setXXX method in the XmlCursor world is copy/moveXmlContents(). =20 =20 ________________________________ From: Jones, Damon [mailto:gary77@example.org]=20 Sent: Monday, December 05, 2005 1:27 PM To: gary77@example.org Subject: XmlCursor - equivalent setObject() method? =20 Hello,=20 I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I would like to add the new XmlObject into that position. Is there a way to do this.=20 Thanks,=20 Damon Jones=20 ------_=_NextPart_001_01C5F9EB.C5FC6269 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <title>XmlCursor - equivalent setObject() method?</title> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>The equivalent of XmlObject setXXX = method in the XmlCursor world is = copy/moveXmlContents().<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>&nbsp;<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p> <div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in = 0in 4.0pt'> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font = size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> = Jones, Damon [mailto:gary77@example.org] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, December = 05, 2005 1:27 PM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = gary77@example.org<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> XmlCursor - = equivalent setObject() method?</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p>&nbsp;</o:p></span></font></p> <p><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial'>Hello,</span></font> <o:p></o:p></p> <p><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial'>I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I = would like to add the new XmlObject into that = position.</span></font><o:p></o:p></p> <p><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial'>Is there a way to do this.</span></font> <o:p></o:p></p> <p><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial'>Thanks,</span></font> <br> <font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial'>Damon Jones</span></font> <o:p></o:p></p> </div> </div> </body> </html> ------_=_NextPart_001_01C5F9EB.C5FC6269-- From usergary77@example.org Mon Dec 05 22:46:23 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 34169 invoked from network); 5 Dec 2005 22:46:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Dec 2005 22:46:22 -0000 Received: (qmail 27193 invoked by uid 500); 5 Dec 2005 22:46:21 -0000 Delivered-To: gary77@example.org Received: (qmail 27177 invoked by uid 500); 5 Dec 2005 22:46:20 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 27166 invoked by uid 99); 5 Dec 2005 22:46:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:46:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO mailgw2a.lmco.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 14:46:19 -0800 Received: from emss01g01.ems.lmco.com (relay1.ems.lmco.com [83.161.120.155]) by mailgw2a.lmco.com (8.12.10/8.12.10) with ESMTP id jB5MHoN2020508 for <gary77@example.org>; Mon, 5 Dec 2005 17:45:58 -0500 (EST) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1X6 #30875) id <gary77@example.org> for gary77@example.org; Mon, 05 Dec 2005 14:14:18 -0800 (PST) Received: from EMSS01I00.us.lmco.com ([83.161.120.155]) by lmco.com (PMDF V6.1-1X6 #30875) with ESMTP id <gary77@example.org> for gary77@example.org; Mon, 05 Dec 2005 14:14:15 -0800 (PST) Received: from EMSS01M15.us.lmco.com ([83.161.120.155]) by EMSS01I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 05 Dec 2005 14:13:55 -0800 Date: Mon, 05 Dec 2005 14:13:54 -0800 From: "Jones, Damon" <gary77@example.org> Subject: RE: XmlCursor - equivalent setObject() method? To: gary77@example.org Message-id: <gary77@example.org> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-type: multipart/alternative; boundary="Boundary_(ID_iImPocaWG03KMZv6ZX7efw)" Thread-Topic: XmlCursor - equivalent setObject() method? Thread-Index: AcX50d4F5kF0hoZYS+68s3Lz2kwmngAFpaUQ content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 05 Dec 2005 22:13:55.0234 (UTC) FILETIME=[2E798820:01C5F9E9] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Boundary_(ID_iImPocaWG03KMZv6ZX7efw) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT I think I figured it out. You basically have to do the following: 1) Create and move a cursor to where you want to add the item (newPosCursor). 2) Add the new XmlObject (will be placed toward the end of the document) 3) Get the cursor of the new XmlObject (XmlCursor currentPosCursor = xmlObject.newCursor()). 4) Move the new XmlObject to the newPosCursor (currentPosCursor.moveXml(newPosCursor)) Though I don't know how elegant this is. Damon -----Original Message----- From: Jones, Damon Sent: Monday, December 05, 2005 11:27 AM To: gary77@example.org Subject: XmlCursor - equivalent setObject() method? Hello, I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I would like to add the new XmlObject into that position. Is there a way to do this. Thanks, Damon Jones --Boundary_(ID_iImPocaWG03KMZv6ZX7efw) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>I think I figured it out. You basically have to do the following:</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>1) Create and move a cursor to where you want to add the item (newPosCursor).</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>2) Add the new XmlObject (will be placed toward the end of the document)</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>3) Get the cursor of the new XmlObject (XmlCursor currentPosCursor = xmlObject.newCursor()).</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>4) Move the new XmlObject to the newPosCursor (</FONT></SPAN><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>currentPosCursor.moveXml(newPosCursor))</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>Though I don't know how elegant this is.</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2>Damon</FONT></SPAN></DIV> <DIV><SPAN class=468430822-05122005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Jones, Damon <BR><B>Sent:</B> Monday, December 05, 2005 11:27 AM<BR><B>To:</B> gary77@example.org<BR><B>Subject:</B> XmlCursor - equivalent setObject() method?<BR><BR></FONT></DIV><!-- Converted from text/rtf format --> <P><FONT face=Arial size=2>Hello,</FONT> </P> <P><FONT face=Arial size=2>I am trying to figure out the best way to place a newly created XmlObject anywhere in my existing XML document. I understand that you can use the XmlCursor to move to a certain position in the XML document. Then I would like to add the new XmlObject into that position.</FONT></P> <P><FONT face=Arial size=2>Is there a way to do this.</FONT> </P> <P><FONT face=Arial size=2>Thanks,</FONT> <BR><FONT face=Arial size=2>Damon Jones</FONT> </P></BLOCKQUOTE></BODY></HTML> --Boundary_(ID_iImPocaWG03KMZv6ZX7efw)-- From usergary77@example.org Tue Dec 06 02:24:58 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 25551 invoked from network); 6 Dec 2005 02:24:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Dec 2005 02:24:58 -0000 Received: (qmail 70705 invoked by uid 500); 6 Dec 2005 02:24:56 -0000 Delivered-To: gary77@example.org Received: (qmail 70662 invoked by uid 500); 6 Dec 2005 02:24:55 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 70647 invoked by uid 99); 6 Dec 2005 02:24:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 18:24:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO shark.securenet-server.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 18:24:54 -0800 Received: from dc-upix01.myinunison.com ([83.161.120.155] helo=[83.161.120.155]) by shark.securenet-server.net with esmtpa (Exim 4.52) id 1EjSVI-0001Ee-W8 for gary77@example.org; Mon, 05 Dec 2005 21:24:29 -0500 Message-ID: <gary77@example.org> Date: Mon, 05 Dec 2005 22:24:30 -0400 From: Peter Lynch <gary77@example.org> Reply-To: gary77@example.org User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gary77@example.org Subject: Re: Jar Naming References: <gary77@example.org> In-Reply-To: <gary77@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shark.securenet-server.net X-AntiAbuse: Original Domain - xmlbeans.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pub.missioncap.ca X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You may consider using '-' instead of '_' ( xmlbeans-xpath-x.x.x.jar ) as it is arguably more common. Good to see the version will be attached to the jar name in the future though. Thanks. -Peter Cezar Andrei wrote: > You're right, we should move to xmlbeans-xxx.jar naming in the next > release. > Also the xbean_xpath.jar should be renamed to xmlbeans_xpath.jar. > It would avoid any naming confusion. > > Cezar > > >>-----Original Message----- >>From: Dan Diephouse [mailto:gary77@example.org] >>Sent: Monday, December 05, 2005 1:02 PM >>To: gary77@example.org >>Subject: Jar Naming >> >>Hiya, >>Can the jar naming on xmlbeans be changed in the future? In the maven >>repo they're called "xbean-xxx.jar". With the XBean project coming to >>geronimo this can be really confusing. I'd like to see >>"xmlbeans-xxx.jar". Cheers, >> >>- Dan >> >>-- >>Dan Diephouse >>Envoi Solutions LLC >>http://netzooid.com >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: gary77@example.org >>For additional commands, e-mail: gary77@example.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: gary77@example.org > For additional commands, e-mail: gary77@example.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Tue Dec 06 06:15:53 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 9791 invoked from network); 6 Dec 2005 06:15:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Dec 2005 06:15:53 -0000 Received: (qmail 82814 invoked by uid 500); 6 Dec 2005 06:15:48 -0000 Delivered-To: gary77@example.org Received: (qmail 82659 invoked by uid 500); 6 Dec 2005 06:15:48 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 82464 invoked by uid 99); 6 Dec 2005 06:15:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 22:15:47 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=HTML_10_20,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO InMumG01.tcs.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 22:15:44 -0800 Received: from InKolM01.tcs.com ([83.161.120.155]) by InMumG01.tcs.com with InterScan Messaging Security Suite; Tue, 06 Dec 2005 11:44:08 +0530 To: <gary77@example.org> Subject: How to parse a XML file containing special characters MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 From: gary77@example.org Message-ID: <gary77@example.org> Date: Tue, 6 Dec 2005 11:07:32 +0530 X-MIMETrack: Serialize by Router on InKolM01/TCS(Release 6.53HF361 | February 23, 2005) at12/06/2005 11:44:08,Serialize complete at 12/06/2005 11:44:08 Content-Type: multipart/alternative; boundary="=_alternative 001EB4FC652570CF_=" X-imss-version: 2.034 X-imss-result: Passed X-imss-scores: Clean:69.38549 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:3 M:3 S:3 R:3 (0.5000 0.5000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 001EB4FC652570CF_= Content-Type: text/plain; charset="US-ASCII" Dear All, In our application we use the StringBuffer to contain the XML as string. In some cases we need to save BULLETs, so in the StringBuffer we replace the BULLET with its UNICODE value, i.e. &#8226; and the content of the StringBuffer is written to an XML file. After saving the file, when we open the xml in a document editor, we see the &#8226; where we earlier placed it. Now when we are going to Parse the XML using XMLBean, the XMLObject we are getting , contains BULLET in the place of the UNICODE we provided. When we save the XMLObject to a file, it fails to write the UNICODE corresponding to BULLET. As a result when we open the same XML uisng any document editor we are getting some non-recognizable character in the places of BULLETS. How to preserve the UNICODE while parsing the file with XMLBeans? Warm Regards, Sujoy Banerjee Tata Consultancy Services Limited Plot B-1, Block EP & GP Sector - V, Salt Lake Electronics Complex Kolkata - 700 091,West Bengal India Mailto: gary77@example.org Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you --=_alternative 001EB4FC652570CF_= Content-Type: text/html; charset="US-ASCII" <br><font size=2 face="sans-serif">Dear All,</font> <br><font size=2 face="sans-serif">In our application we use the StringBuffer to contain the XML as string. In some cases we need to save BULLETs, so in the StringBuffer we replace the BULLET with its UNICODE value, i.e. &amp;#8226; and the content of the StringBuffer is written to an XML file. After saving the file, when we open the xml in a document editor, we see the &amp;#8226; where we earlier placed it. Now when we are going to Parse the &nbsp;XML using XMLBean, the XMLObject we are getting , contains BULLET in the place of the UNICODE we provided. When we save the XMLObject to a file, it fails to write the UNICODE corresponding to BULLET. As a result when we open the same XML uisng any document editor we are getting some non-recognizable character in the places of BULLETS. How to preserve the UNICODE while parsing the file with XMLBeans?</font> <br> <br><font size=2 face="sans-serif">Warm Regards,<br> Sujoy Banerjee<br> Tata Consultancy Services Limited<br> Plot &nbsp;B-1, Block EP &amp; GP<br> Sector - V, Salt Lake Electronics Complex<br> Kolkata - 700 091,West Bengal<br> India<br> Mailto: gary77@example.org<br> Website: http://www.tcs.com</font> <table><tr><td bgcolor=#ffffff><font color=#000000>Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you<br> </font></td></tr></table> --=_alternative 001EB4FC652570CF_=-- From usergary77@example.org Tue Dec 06 12:51:44 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 94044 invoked from network); 6 Dec 2005 12:51:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Dec 2005 12:51:44 -0000 Received: (qmail 55271 invoked by uid 500); 6 Dec 2005 12:51:42 -0000 Delivered-To: gary77@example.org Received: (qmail 55210 invoked by uid 500); 6 Dec 2005 12:51:41 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 55183 invoked by uid 99); 6 Dec 2005 12:51:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 04:51:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gary77@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 Dec 2005 04:51:40 -0800 Received: (qmail invoked by alias); 06 Dec 2005 12:51:19 -0000 Received: from KUEBEL.UNI-MUENSTER.DE (EHLO gmx.de) [83.161.120.155] by mail.gmx.net (mp034) with SMTP; 06 Dec 2005 13:51:19 +0100 X-Authenticated: #3475289 Message-ID: <gary77@example.org> Date: Tue, 06 Dec 2005 13:51:19 +0100 From: Johannes Echterhoff <gary77@example.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040219 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gary77@example.org Subject: problem concerning version number in targetNamespace Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello. For handling different schema versions it could be nice to include the version number in the targetNamespace of a schema (see http://www.devx.com/xml/Article/22553 to get an overview of what I mean). So I tested this a little bit. The following schema is my test schema (I compile it using the xmlbeans ant task): <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://foo.bar/v01-01-00" targetNamespace="http://foo.bar/v01-01-00" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Root"> <xs:complexType> <xs:sequence> <xs:element name="foobar" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> The resulting package for the generated classes is: bar.foo.v010100 - alright. But if I change the targetNamespace to v01.01.00 the resulting package is bar.foo.v0101! If I use v00.01.10 as version number the resulting package is bar.foo.v0001 whereas if i use v00-01-10 it's bar.foo.v000110 Seems to me that if I use a version number like vx.y.z with x, y and z being any number of digits the third part of the version number - z - is completely ignored when using dots to separate version fragments. I compiled with v0123456.1.01 and the result was bar.foo.v01234561 (using hyphens the result is bar.foo.v0123456110). Is this a bug? It would be nice to be able to compile schemas that include the schema version in their targetNamespace correctly even if the version number uses dots. What do you think of this? Regards, Johannes --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Tue Dec 06 15:13:41 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 85659 invoked from network); 6 Dec 2005 15:13:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Dec 2005 15:13:41 -0000 Received: (qmail 74050 invoked by uid 500); 6 Dec 2005 15:13:39 -0000 Delivered-To: gary77@example.org Received: (qmail 73927 invoked by uid 500); 6 Dec 2005 15:13:38 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 73905 invoked by uid 99); 6 Dec 2005 15:13:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 07:13:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO geordi.netpioneer.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 07:13:37 -0800 Received: from merkur.netpioneer.org ([83.161.120.155] helo=uhura.ka.netpioneer.de) by geordi.netpioneer.org with esmtp (Exim 4.50) id 1EjeVE-0005u7-S4 for gary77@example.org; Tue, 06 Dec 2005 16:13:15 +0100 Received: from [83.161.120.155] ([83.161.120.155]) by uhura.ka.netpioneer.de with Microsoft SMTPSVC570.397.2245); Tue, 6 Dec 2005 16:13:12 +0100 Message-ID: <gary77@example.org> Date: Tue, 06 Dec 2005 16:13:12 +0100 From: Stefan Frank <gary77@example.org> User-Agent: Debian Thunderbird 1.0.2 (X11/20050817) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gary77@example.org Subject: Build terminates directly after xmlbean-task Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Dec 2005 15:13:12.0537 (UTC) FILETIME=[93116490:01C5FA77] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I'm using the ant-task to build my xml-beans - the generation&compile works flawless, however the ant-build stops directly after the xml-bean-task: In my target <target name="compile.xmlbeans" depends="init"> <xmlbean schema="${xsd.src.dir}" classgendir="${target.dir}" srcgendir="${webservice.target.src}" destfile="${target.dir}/${webservice.xmlbeans.jar}" classpathref="project.classpath" debug="${webservice.xmlbeans.compile.debug}" optimize="${webservice.xmlbeans.compile.optimize}" verbose="true" fork="true" failonerror="true" /> <echo>This echo is never reached</echo> </target> the echo directly following the xmlbean-task is never reached - regardless of the switches for fork/failonerror - the build simply stops here without any further notice or failure. Has anybody seen this error before?? thx for any help! stf --------------------------------------------------------------------- To unsubscribe, e-mail: gary77@example.org For additional commands, e-mail: gary77@example.org From usergary77@example.org Tue Dec 06 17:07:28 2005 Return-Path: <usergary77@example.org> Delivered-To: gary77@example.org Received: (qmail 53605 invoked from network); 6 Dec 2005 17:07:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Dec 2005 17:07:27 -0000 Received: (qmail 26805 invoked by uid 500); 6 Dec 2005 17:07:25 -0000 Delivered-To: gary77@example.org Received: (qmail 26752 invoked by uid 500); 6 Dec 2005 17:07:24 -0000 Mailing-List: contact gary77@example.org; run by ezmlm Precedence: bulk List-Post: <mailto:gary77@example.org> List-Help: <mailto:gary77@example.org> List-Unsubscribe: <mailto:gary77@example.org> Reply-To: gary77@example.org List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list gary77@example.org Received: (qmail 26741 invoked by uid 99); 6 Dec 2005 17:07:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 09:07:24 -0800 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.161.120.155] (HELO rwcrmhc12.comcast.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 09:07:24 -0800 Received: from jim-notebook (vi-303.aggm02.den01.viawest.net[83.161.120.155]) by comcast.net (rwcrmhc12) with SMTP id <20051206170703014007ofrje>; Tue, 6 Dec 2005 17:07:03 +0000 Received: from jimnotebook by jim-notebook (PGP Universal service); Tue, 06 Dec 2005 10:07:03 -0700 X-PGP-Universal: processed; by jim-notebook on Tue, 06 Dec 2005 10:07:03 -0700 From: "Jim McMaster" <gary77@example.org> To: <gary77@example.org>
{'source': 'Apache Software Foundation Public Mail Archives'}