You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by ext2 <xu...@tongtech.com> on 2010/03/05 11:30:13 UTC
how could I sdo with other xml techinal(etc xpath) more efficently?
Hi:
I am using TuscanySDO in my application. But it gives bad performance , when
I using sdo with other xml techinal (etc xpath , or xslt).
Because when I using xpath , I must save the SDO as a XML again, and also
the transform result xml will be convert to SDO. They waste too much
performance.
So I am wondering does the Tuscany SDO support a more efficient way ?
It may be looks like as following:
Support a org.xml.sax. XMLReader interface to enumerate the xml
directly from the SDO Object;
Support a org.xml.sax.ContentHandler interface to write fields to SDO
Object;
Or like the JAXB techinal:
Support some SAXSource interface for SDO
Support some SAXResource interface for SDO.
So the conversion between SDO and XML doesn't need, and a more performance
is gained.
Thanks a lot;
Re: how could I sdo with other xml techinal(etc xpath) more
efficently?
Posted by kelvin goodson <ke...@gmail.com>.
On Fri, Mar 5, 2010 at 10:30 AM, ext2 <xu...@tongtech.com> wrote:
> Hi:
>
> I am using TuscanySDO in my application. But it gives bad performance , when
> I using sdo with other xml techinal (etc xpath , or xslt).
>
>
>
> Because when I using xpath , I must save the SDO as a XML again, and also
> the transform result xml will be convert to SDO. They waste too much
> performance.
>
>
>
> So I am wondering does the Tuscany SDO support a more efficient way ?
>
>
>
> It may be looks like as following:
>
> Support a org.xml.sax. XMLReader interface to enumerate the xml
> directly from the SDO Object;
>
> Support a org.xml.sax.ContentHandler interface to write fields to SDO
> Object;
>
>
>
> Or like the JAXB techinal:
>
> Support some SAXSource interface for SDO
>
> Support some SAXResource interface for SDO.
>
>
>
> So the conversion between SDO and XML doesn’t need, and a more performance
> is gained.
>
>
>
> Thanks a lot;
>
>
>
>
Unfortunately not. The Tuscany implementations of the SDO xpath like
syntax on the official APIs are efficient, but if they are not
sufficient for your purposes, we don't have such extensions in the
Tuscany SDO implementation.
how could I use sdo with simple-type schema?
Posted by ext2 <xu...@tongtech.com>.
Hi
It's very easy using SDO process complex-type schema.
But things are difficult while using SDO to deal with simple-type schema.
The following is some difficult:
1) How could I get a SDO type for simple-type-schema(etc xs:string),
and How could I use the type to create a data object?
Although I could get the type named as "common.sdo/String" . But I couldn't
use it to create a SDO instance( DataFactory.create() will failed by throw
IllegalArgument Exception;
2) While load simple type xml element instance as SDO, I will get a
SimpleAnyTypeObjectImpl.
How could I create such a instance?
If I get such a instance, how can I determine what the exactly simple type(
Integer, String , .) is? Although SimpleAnyTypeObjectImpl 's getType()
method does return a type , but the type cannot tell anything about the
exact simple type(Integer, or String .).
Thanks any suggestion
Thanks any suggestion