CDATA sections
Hi all, According to this old message on the list [1] when embedding HTML as a textual value of an XML element sometimes xmlbeans will use a CDATA section but other times it will just escape the characters that it finds objectionable. Is there any way that I can force it to always use a CDATA section in xmlbeans 2.0? Thanks in advance Adam [1] http://nagoya.apache.org/eyebrowse/ReadMsg?listId=277msgNo=662 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re-Generating schema from the generated code
Actually there is a nicer way to get to the schema source: SchemaType type = GeneratedXMLBean.type; InputStream is = type.getTypeSystem(). getSourceAsStream(type.getSourceName()); Cezar -Original Message- From: Cezar Andrei Sent: Tuesday, October 04, 2005 12:36 PM To: user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: RE: Re-Generating schema from the generated code Scomp saves the original schema files inside the generated jar, and you can get to it in the following way: InputStream is = XMLParsers.class.getClassLoader().getResourceAsStream(schemaorg_apache_ xmlbeans/src/ + GeneratedXMLBean.type.getSourceName()); Cezar -Original Message- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 11:33 AM To: user@xmlbeans.apache.org Subject: Re-Generating schema from the generated code Hi, I'm from Apache Axis2 team. I need a help in generating schema using XMLBeans. My scenario is like this. I have bunch of classes created using a given xml schema, by XMLBeans. But at some time, I do not have the schema file which was used to generate the code, but I have all the classes generated using that schema by xml beans. Now I want to generate/derive the schema from the classes I have. I load the generated classes using a proper class loader and I could find all the generated codes which are global elements. How can I recreate the schema which was used to generate this code. I don't have the initial schema file by now. I want to derive it using the classes I have. Any help in this is very much appreciated. (Sorry If I'm repeating this question on this list. I searched in the archives, but didn't find something similar to this.) Thanks, Chinthaka - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Migrating from castor to XMLBeans
Hi there, I have a project that uses castor to do the xml-java data binding. I am planning to migrate from castor to XMLBeans. What i need is to marshall an XML file to java beans, and unmarshall java beans to an XML file. The format of my XML files is quite simple, and i didn't use schemas. The java beans are alreadycoded and i do not want to use generated classes.I checked the documenations of XMLBeans, but did not findany articles or samples about simple marshalling/unmarshalling. (Perhaps i am not patient enough). I would like to know,may the XMLBeans project meet my requirements? I am completely new to XMLBeans. May someonetell me if i am in the correct way to migrate from castor to XMLBeans? Or if i'd better keep playing withcastor? All your suggestions are appreciated. Thanks in advance. -- ZHENG Zhong1 Avenue Alphand75116 Paris, France+33 6 76 80 45 90
RE: Set vs Add methods
Title: Message You are right, I couldn't find it either. I meant to do an update to the information that's on the website currently;haven't gotten to it yet, but it will be added. Thanks, Radu -Original Message-From: rabidgremlin [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 6:28 PMTo: user@xmlbeans.apache.orgSubject: Re: Set vs Add methodsAh, that makes sense.Was that behavior documented anywhere ? I did not see it :)Jonathan On 10/18/05, David Jencks [EMAIL PROTECTED] wrote: In order not to have side effects on its argument, add(FooType foo)methods add a copy of foo rather than the foo you supply.Subsequentmodifications of foo will then have no effect on the copy.Theparticular change would be changing the parent xml object.I find using add much more convenient.thanksdavid jencks