OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Question about XMLBeans

[ Lists Home | Date Index | Thread Index ]
  • To: "Eddie O'Neil" <ekoneil@bea.com>
  • Subject: RE: [xml-dev] Question about XMLBeans
  • From: "Li Yuejiong(John)" <john_li@macrosynergy.com>
  • Date: Wed, 27 Jul 2005 20:27:18 +0800
  • Cc: <xml-dev@lists.xml.org>
  • Thread-index: AcWSYO3s5STQUEfiTm+TKulC8T4FugAQ/lcg
  • Thread-topic: [xml-dev] 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@bea.com] 
Sent: Wednesday, July 27, 2005 12:11 PM
To: Li Yuejiong(John)
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Question about XMLBeans

John--

   Your best bet for getting a response from Apache XMLBeans is to
subscribe to the user@xmlbeans.apache.org 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@ajax.apache.org%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>
> 
> 







 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS