[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Question about XMLBeans

  • To: "Eddie O'Neil" <ekoneil@b...>
  • Subject: RE: Question about XMLBeans
  • From: "Li Yuejiong(John)" <john_li@m...>
  • Date: Wed, 27 Jul 2005 20:27:18 +0800
  • Cc: <xml-dev@l...>
  • Thread-index: AcWSYO3s5STQUEfiTm+TKulC8T4FugAQ/lcg
  • Thread-topic: Question about XMLBeans

xmlbeans classloader
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.