[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    create beans with XPath
From:       puneet sharma <puneet_jee () yahoo ! com>
Date:       2005-01-13 12:26:24
Message-ID: 20050113122625.58475.qmail () web13521 ! mail ! yahoo ! com
[Download RAW message or body]

Hi All,

Is there any way I can use XPath with XMLBeans to 
create the beans. I know that there is a support to
select the nodes using XPath but I could not found any
thing to create the beans using XPath.

I tried integrating XMLBeans and JXPath. I am
specifying the XPath to get and create the beans.

It works fine for following scenarios
 Reading the simple type data
 Reading the array(multiOccurance in XSD) type data
 Creating the simple beans. 

But I am facing problems while creating the Array type
of beans.
getXXXArray() of created XML Bean does not return
output which JXPath expects. getXXXArray() method
always returns a array may be blank. But JXPath
expects null instead of blank array .


Any one has created the beans using XPath. or achieved
similar functionality

Thanks
Puneet


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic