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 |
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-----
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 http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
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]]
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----- 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 http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |