[vwnc] xml validation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] xml validation

Philippe Demaecker
Hello list,

I'm trying to validate xml against an xsd in Smalltalk, but what I expected to be a simple task seems to be a rather challenging.

We are using our application to integrate with other systems and exhange xml files to achieve this. When receiving xml files from the other system we need to validate those xml files against a given .xsd file, and give an error when validation fails.

I tried using the Xschema parcel from the vw/preview folder, but it fails (= lot's of crashes on lot's of different issue) when handling more complex xsd's.

I also found the OSSB XML Schema package on the open repo, but it only "provides limited support" (as stated in the blessing comment).

Is there some "finished" toolkit available somewhere that I looked over?

Thanks in advance,
Philippe

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] xml validation

thomas.hawker

Philippe,

 

Unfortunately, you've opened a can of worms.  The simple answer is, “It’s complicated.”  If you are validating against multiple XSDs independently, where those XSDs include or import other XSDs, then the answer is, “It’s a nightmare because it doesn’t do what you think it should.”  I’ve just spent several weeks porting our web service code from VW7.4.1 to VW7.6.  I’d had a lot of method overrides for behavior fixes in VW7.4.1.  Most of those I could remove, but I had to introduce a whole new set for VW7.6.

 

If you want to follow up, please contact me off the discussion group.  There are setup things you need to do that help make your life simple, and there are things you have to do by hand regardless.  I can show you some of those things, but most of my work is in web services rather than XML directly.  I imagine quite a bit carries over, though.

 

Cheers!

 

Tom Hawker

--------------------------

Senior Framework Developer

--------------------------

Home        +1 (408) 274-4128

Office      +1 (408) 576-6591

Mobile      +1 (408) 835-3643

 

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Philippe Demaecker
Sent: Thursday, February 05, 2009 6:48 AM
To: [hidden email]
Subject: [vwnc] xml validation

 

Hello list,

 

I'm trying to validate xml against an xsd in Smalltalk, but what I expected to be a simple task seems to be a rather challenging.

 

We are using our application to integrate with other systems and exhange xml files to achieve this. When receiving xml files from the other system we need to validate those xml files against a given .xsd file, and give an error when validation fails.

 

I tried using the Xschema parcel from the vw/preview folder, but it fails (= lot's of crashes on lot's of different issue) when handling more complex xsd's.

 

I also found the OSSB XML Schema package on the open repo, but it only "provides limited support" (as stated in the blessing comment).

 

Is there some "finished" toolkit available somewhere that I looked over?

 

Thanks in advance,

Philippe

 

_______________________________________________

vwnc mailing list

[hidden email]

http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 

IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not intended for you, please delete it immediately unread.  The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in doing so.  Without limitation, OOCL and its affiliates accept no liability whatsoever and howsoever arising in connection with the use of this email.  Under no circumstances shall this email constitute a binding agreement to carry or for provision of carriage services by OOCL, which is subject to the availability of carrier's equipment and vessels and the terms and conditions of OOCL's standard bill of lading which is also available at http://www.oocl.com.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] xml validation

Philippe Demaecker

Heya Thomas,

 

Thank you for your feedback.

 

I’m a little time constrained here, so I’m not sure I’ll have enough time to do the required patchwork to get it working in VW.

 

I did manage to get xsd validation working with MSXML 6.0 through the COM package (the first test succeeded at least), so maybe I’ll give that one a shot.

 

It’s a pity though, I’d expect such kind of functionality to be part of VW.

 

Anyway, thanks for the insights Thomas.

 

Cheers!

Philippe

 

 


From: [hidden email] [mailto:[hidden email]]
Sent: donderdag 5 februari 2009 19:35
To: Philippe Demaecker; [hidden email]
Subject: RE: xml validation

 

Philippe,

 

Unfortunately, you've opened a can of worms.  The simple answer is, “It’s complicated.”  If you are validating against multiple XSDs independently, where those XSDs include or import other XSDs, then the answer is, “It’s a nightmare because it doesn’t do what you think it should.”  I’ve just spent several weeks porting our web service code from VW7.4.1 to VW7.6.  I’d had a lot of method overrides for behavior fixes in VW7.4.1.  Most of those I could remove, but I had to introduce a whole new set for VW7.6.

 

If you want to follow up, please contact me off the discussion group.  There are setup things you need to do that help make your life simple, and there are things you have to do by hand regardless.  I can show you some of those things, but most of my work is in web services rather than XML directly.  I imagine quite a bit carries over, though.

 

Cheers!

 

Tom Hawker

--------------------------

Senior Framework Developer

--------------------------

Home        +1 (408) 274-4128

Office      +1 (408) 576-6591

Mobile      +1 (408) 835-3643

 

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Philippe Demaecker
Sent: Thursday, February 05, 2009 6:48 AM
To: [hidden email]
Subject: [vwnc] xml validation

 

Hello list,

 

I'm trying to validate xml against an xsd in Smalltalk, but what I expected to be a simple task seems to be a rather challenging.

 

We are using our application to integrate with other systems and exhange xml files to achieve this. When receiving xml files from the other system we need to validate those xml files against a given .xsd file, and give an error when validation fails.

 

I tried using the Xschema parcel from the vw/preview folder, but it fails (= lot's of crashes on lot's of different issue) when handling more complex xsd's.

 

I also found the OSSB XML Schema package on the open repo, but it only "provides limited support" (as stated in the blessing comment).

 

Is there some "finished" toolkit available somewhere that I looked over?

 

Thanks in advance,

Philippe

 

_______________________________________________

vwnc mailing list

[hidden email]

http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 

IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not intended for you, please delete it immediately unread.  The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in doing so.  Without limitation, OOCL and its affiliates accept no liability whatsoever and howsoever arising in connection with the use of this email.  Under no circumstances shall this email constitute a binding agreement to carry or for provision of carriage services by OOCL, which is subject to the availability of carrier's equipment and vessels and the terms and conditions of OOCL's standard bill of lading which is also available at http://www.oocl.com.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc