AW: What does XmlOptions.UNSYNCHRONIZED mean?
Hi Cezar, thank you for the answer. I have another question: When I create a XmlObject with options and then add a new subelement to it, will the subelement inherit the options? E.g. XmlOptions opt = new XmlOptions(); opt.setUnsynchronized(); MyObjectType obj = MyObjectType.Factory.newInstance( opt ); MySubObjectType subObj = obj.addNewSubObjectType(); Will subObj now use the same options? There is no addNewSubObjectType() method with a XmlOptions as parameter. And another one: What happens when I replace an abstract with a concrete type? E.g. MyAbstractSubObjectType abstractObj = obj.addNewAbstractSubObjectType(); MyAbstractSubObjectType concreteObj = getSomehowMyConcreteObject(); abstractObj.set( concretObj ); Will the child of obj now use the options it maybe inherited from obj, or will it use the options of the conrete object? thanks, Christoph Ursprüngliche Nachricht Von: Cezar Andrei [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. April 2006 18:16 An: user@xmlbeans.apache.org Betreff: RE: What does XmlOptions.UNSYNCHRONIZED mean? The answer it's b), you have to pass the option when you first create a new xml store, which happens when you create a new XmlObject, through newInstance() or parse(). If unsynchronized option is used, the following access to the store will be unsynchronized. Cezar -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 9:29 AM To: user@xmlbeans.apache.org Subject: What does XmlOptions.UNSYNCHRONIZED mean? Hi, could someone explain what XmlOptions.UNSYNCHRONIZED actually does? When do I have to specify this option: a) when I compile the schema or b) when I created new XMLbeans instances. I.e.: XmlOptions opt = new XmlOptions(); opt.setUnsynchronized(); XmlObject obj = MyObjectType.Factory.newInstance( opt ); Is my instance now unsynchronized or not? thanks, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ _ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - 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]
Re: SV: xml-fragment containing well formed XML Documents
Hi again, What approach would be best to create this particular part of the document. As mentioned before, the element will contain any number of well formed documents. In my case, I have 2 documents to add to the MessageText.These documents are created independently. Any attempt to add the 2 documents to the MessageText, results in them being wrapped in a CDATA. Ideally, what I would like is something like this. MessageText ah:AppHdr xmlns:ah=urn:swift:xsd:$ahV10 ah:From ah:Typeei Type From/ah:Type ah:Idei ID From/ah:Id /ah:From /ah:AppHdr Doc:Document xmlns:Doc=urn:swift:xsd:swift.if.ia$setr.010.001.02 Doc:MstrRefthe Master Reference/Doc:MstrRef /Doc:Document /MessageText Again, many thanks in advance. Nirmal -- View this message in context: http://www.nabble.com/%3Cxml-fragment%3E-containing-well-formed-XML-Documents-t1480526.html#a4136239 Sent from the Xml Beans - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: inheritance: I m I allowed to subClass an XmlMyGeneratedObjectImpl
Ben, Take a look at extensions, it's probably what you're looking for: http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature Cezar -Original Message- From: Ben Jelloul Marouane [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 7:32 AM To: xmlbeans user mailing list Subject: inheritance: I m I allowed to subClass an XmlMyGeneratedObjectImpl Hi, my problem is this: I have a generated with scomp: Public Interface XmlHolderTypeLib Public Class XmlHolderTypeLibImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements HolderTypeLib I need a Class HolderTypeLib that I can load with an xml file but that have also a lot of other methods that I will add. The problem is that the XmlHolderTypeLib.Factory.parse(file) will create a instance of XmlHolderTypeLibImpl. Is it correct to do (I m not sure because XmlHolderTypeLibImpl is in an impl package): Class HolderTypeLib extends XmlHolderTypeLibImpl and even if it is correct how I will create an instance of HolderTypeLib. Thanks, Marouane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SV: xml-fragment containing well formed XML Documents
This is a case where you have to use the XmlCursor API to copy/move the two documents into the right place. Cezar -Original Message- From: jadiyo [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 3:34 AM To: user@xmlbeans.apache.org Subject: Re: SV: xml-fragment containing well formed XML Documents Hi again, What approach would be best to create this particular part of the document. As mentioned before, the element will contain any number of well formed documents. In my case, I have 2 documents to add to the MessageText.These documents are created independently. Any attempt to add the 2 documents to the MessageText, results in them being wrapped in a CDATA. Ideally, what I would like is something like this. MessageText ah:AppHdr xmlns:ah=urn:swift:xsd:$ahV10 ah:From ah:Typeei Type From/ah:Type ah:Idei ID From/ah:Id /ah:From /ah:AppHdr Doc:Document xmlns:Doc=urn:swift:xsd:swift.if.ia$setr.010.001.02 Doc:MstrRefthe Master Reference/Doc:MstrRef /Doc:Document /MessageText Again, many thanks in advance. Nirmal -- View this message in context: http://www.nabble.com/%3Cxml-fragment%3E- containing-well-formed-XML-Documents-t1480526.html#a4136239 Sent from the Xml Beans - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Replacement for QNameHelper.updateWellKnownPrefixes?
Did you try XmlOptions setSaveSuggestedPrefixes() ? From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 1:30 PM To: user@xmlbeans.apache.org Subject: Replacement for QNameHelper.updateWellKnownPrefixes? I have some old code that uses 1.0.2 xmlbeans it has a call to QNameHelper.updateWellKnownPrefixes to update some prefixes. I see that the call updates the prefixes into the WELL_KNOWN_PREFIXES map. But this method no longer exists is there another suggested way to achieve the same goal? - Vish. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.