Lists Home |
Date Index |
- To: "Eddie O'Neil" <firstname.lastname@example.org>
- Subject: RE: [xml-dev] Question about XMLBeans
- From: "Li Yuejiong(John)" <email@example.com>
- Date: Wed, 27 Jul 2005 20:27:18 +0800
- Cc: <firstname.lastname@example.org>
- Thread-index: AcWSYO3s5STQUEfiTm+TKulC8T4FugAQ/lcg
- Thread-topic: [xml-dev] Question about XMLBeans
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
String schemaName = yourXBean.schemaType().getSourceName();
String schemaPath = "schema/src/" + schemaName;
ClassLoader classLoader =
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?
From: Eddie O'Neil [mailto:email@example.com]
Sent: Wednesday, July 27, 2005 12:11 PM
To: Li Yuejiong(John)
Subject: Re: [xml-dev] Question about XMLBeans
Your best bet for getting a response from Apache XMLBeans is to
subscribe to the firstname.lastname@example.org mailing list and then post
your question. The instructions for subscribing are here:
To address your specific question, check out the post here which
talks about how to convert a SchemaType into an XmlObject:
Hope that helps!
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
> 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>