tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Landbo Frederiksen" <Christian.Landbo.Frederik...@ementor.dk>
Subject RE: Loading XML
Date Wed, 28 Mar 2007 07:15:40 GMT
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


Mime
View raw message