[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Question about XMLBeans
Thanks Eddie. As I have said I just cannot join XMLBeans mail list and submit my question. Everytime my mail is rejected. I don't understand it, and I can join many other mail list without problem. I read all related mails and think the sample code cannot solve my problem. ========================== String schemaName = yourXBean.schemaType().getSourceName(); String schemaPath = "schema/src/" + schemaName; ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); XmlObject schemaXBean = XmlObject.Factory.parse( classLoader.getResourceAsStream( schemaPath ) ); ========================== If schemaType keeps same as the original one in xsd file, it will be OK. But what I want is to get schemaType from xsd file, change some attributes of it, and then retrieve the XmlObject from it. The schemaType doesn't match the original one in xsd file. Maybe we have to wait for the next version of XmlBeans? Thanks, John Li -----Original Message----- From: Eddie O'Neil [mailto:ekoneil@b...] Sent: Wednesday, July 27, 2005 12:11 PM To: Li Yuejiong(John) Cc: xml-dev@l... Subject: Re: Question about XMLBeans John-- Your best bet for getting a response from Apache XMLBeans is to subscribe to the user@x... mailing list and then post your question. The instructions for subscribing are here: http://xmlbeans.apache.org/community/index.html#Mailing+Lists To address your specific question, check out the post here which talks about how to convert a SchemaType into an XmlObject: http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200506.mbox/%3c189 5336521.1118245994822.JavaMail.jira@a...%3e Hope that helps! Eddie Li Yuejiong(John) wrote: > Hi , > > I know this isn't the right place to submit question about XMLBeans, I > just cannot post my question to mail-list of XMLBeans, every time my > mail is rejected...... so I think maybe someone here could help me. > > I can create SchemaTypeSystem and get schema type, XMLBeans works very > well for this purpose. But how can I retrieve the DOM Node from one > SchemaType? > > Thanks, > John Li > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> > >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|