You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Christian Landbo Frederiksen <Ch...@ementor.dk> on 2007/03/27 23:11:14 UTC

Loading XML

Hi Guys

Sorry for the many mails, but I am back trying to fit Tuscany SDO into
my project. I hope my many questions does not drown the mailing list
resulting in no replies at all :)

Is it possible to adjust the loading of XML to be less rigid?

helperContext.getXMLHelper().load

I would love it to so flexible that it could load the xml although
required elements were not filled. I would then fill the required
elements manually using the DataObject with data from elsewhere.

Is this by any chance what the Options map parameter of the above
mentioned method is for?

/Chr

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


RE: Loading XML

Posted by Christian Landbo Frederiksen <Ch...@ementor.dk>.
And you are right!

My bad. I Just wrote a test case and could not recreate it. Then I found
a validate call tugged away in my code. 

So much for memory!

Thanks anyway.

-----Original Message-----
From: Yang ZHONG [mailto:leiwang.yangzhong@gmail.com] 
Sent: 28. marts 2007 02:44
To: tuscany-user@ws.apache.org
Subject: Re: Loading XML

I interpret the requirement such as
        <element name="required" minOccurs="1"    <!--or greater than
1-->
and the XML doesn't have "required" element or its substitution.

I'm not aware XMLHelper#load normally validates minOccurs. Do you have a
Test Case?

On 3/27/07, Christian Landbo Frederiksen <
Christian.Landbo.Frederiksen@ementor.dk> wrote:
>
> Hi Guys
>
> Sorry for the many mails, but I am back trying to fit Tuscany SDO into
> my project. I hope my many questions does not drown the mailing list
> resulting in no replies at all :)
>
> Is it possible to adjust the loading of XML to be less rigid?
>
> helperContext.getXMLHelper().load
>
> I would love it to so flexible that it could load the xml although
> required elements were not filled. I would then fill the required
> elements manually using the DataObject with data from elsewhere.
>
> Is this by any chance what the Options map parameter of the above
> mentioned method is for?
>
> /Chr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>


-- 

Yang ZHONG

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: Loading XML

Posted by Yang ZHONG <le...@gmail.com>.
I interpret the requirement such as
        <element name="required" minOccurs="1"    <!--or greater than 1-->
and the XML doesn't have "required" element or its substitution.

I'm not aware XMLHelper#load normally validates minOccurs. Do you have a
Test Case?

On 3/27/07, Christian Landbo Frederiksen <
Christian.Landbo.Frederiksen@ementor.dk> wrote:
>
> Hi Guys
>
> Sorry for the many mails, but I am back trying to fit Tuscany SDO into
> my project. I hope my many questions does not drown the mailing list
> resulting in no replies at all :)
>
> Is it possible to adjust the loading of XML to be less rigid?
>
> helperContext.getXMLHelper().load
>
> I would love it to so flexible that it could load the xml although
> required elements were not filled. I would then fill the required
> elements manually using the DataObject with data from elsewhere.
>
> Is this by any chance what the Options map parameter of the above
> mentioned method is for?
>
> /Chr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>


-- 

Yang ZHONG