Be sure to put all referenced schemas on the cmd line When I do this, I get a bunch of warnings $ xsd /c listTheatersByPostalCode. Xsd yahooMovie. Xsd yahooMovieCredit.
Xsd yahooMovieMedia. Xsd yahooMoviePhoto. Xsd yahooMovieTheater.
Xsd yahooMovieTheaterAmenity. Xsd yahooMultimedia. Xsd yahooUser.
Xsd Microsoft (R) Xml Schemas/DataTypes support utility Microsoft (R) . NET Framework, Version 2.0.50727.42 Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation warning: The global element 'urn:yahoo:movie:theater:TheaterList' has already been declared. Line 6, position 4. Schema validation warning: The global attribute 'urn:yahoo:movie:theater:id' has already been declared.
Line 7, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:TheaterListType' has already been declared. Line 10, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:TheaterType' has already been declared. Line 19, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:PostalAddressType' has already been declared.
Line 32, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:AmenityListType' has already been declared. Line 55, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:MovieListType' has already been declared. Line 65, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:MovieType' has already been declared.
Line 71, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:ShowsType' has already been declared. Line 82, position 4.
Warning: Schema could not be validated. Class generation may fail or may produce incorrect results If I yank out yahooTheater. Xsd from that list, it works fine I didn't even look at the XSDs but it seems to me that xsd.
Exe thinks some elements have been doubly defined. You may be able to manually reconcile that problem by combining yahootheater. Xsd with yahooTheaterAmenity.xsd.
Or, if you don't care about the amenity part, drop it.
Be sure to put all referenced schemas on the cmd line. When I do this, I get a bunch of warnings. $ xsd /c listTheatersByPostalCode.
Xsd yahooMovie. Xsd yahooMovieCredit. Xsd yahooMovieMedia.
Xsd yahooMoviePhoto. Xsd yahooMovieTheater. Xsd yahooMovieTheaterAmenity.
Xsd yahooMultimedia. Xsd yahooUser. Xsd Microsoft (R) Xml Schemas/DataTypes support utility Microsoft (R) .
NET Framework, Version 2.0.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. Schema validation warning: The global element 'urn:yahoo:movie:theater:TheaterList' has already been declared.
Line 6, position 4. Schema validation warning: The global attribute 'urn:yahoo:movie:theater:id' has already been declared. Line 7, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:TheaterListType' has already been declared. Line 10, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:TheaterType' has already been declared.
Line 19, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:PostalAddressType' has already been declared. Line 32, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:AmenityListType' has already been declared. Line 55, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:MovieListType' has already been declared.
Line 65, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:MovieType' has already been declared. Line 71, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:ShowsType' has already been declared. Line 82, position 4. Warning: Schema could not be validated.
Class generation may fail or may produce incorrect results. If I yank out yahooTheater. Xsd from that list, it works fine.
I didn't even look at the XSDs but it seems to me that xsd. Exe thinks some elements have been doubly defined. You may be able to manually reconcile that problem by combining yahootheater.
Xsd with yahooTheaterAmenity.xsd. Or, if you don't care about the amenity part, drop it.
So, taking out that file ends up giving me the same exact . Cs file, it just doesn't throw those errors...weird... Though, what's the deal with all the classes being partial? – Adam Haile Jun 30 '09 at 4:29 huh?"taking out that file ends"?
As for the partial classes, that's so you can extend them if you like. They are potentially partial. They will compile with no mods and no further code.
– Cheeso Jun 30 '09 at 12:49 I meant that removing yahooMovieTheater. Xsd results in the same . Cs file as if I had left it – Adam Haile Jun 30 '09 at 13:47 oh, yeah, I see now.
What you wrote was clear. :/ Hmm, not enough coffee in me, I guess. LIke I said, I did not even look into those xsd files, but from what you told me, it's possible that yahooTheaterAmenities.
Xsd is just a superset of yahooTheater. Xsd, and that they were not intended to be used together. Maybe Yahoo designed them so people could "opt out" of retrieving the more detailed data with theater amenities.
If there is doc for the schema, maybe even within the . Xsd files themselves, look for a comment on that question. Otherwise it seems like you're well sorted.
– Cheeso Jun 30 '09 at 15:25 Sounds about right...Thanks. BTW, great work on DotNetZip. I came across that about a month ago and it saved me a huge amount of time getting zip functionality into my app :) – Adam Haile Jun 30 '09 at 16:48.
Use the xsd. Exe that comes with visual studio. Iirc xsd /classes theschema.
Xsd But since you tried that, what went wrong?
It spit out only a partial class, that didn't work and said that the schema could not be validated. – Adam Haile Jun 29 '09 at 19:26.
Try out altova.com/download.html. It has a 30 day trial but it will convert xml xsd to classes. It also reverse engineers xml to make a xsd.
$ xsd /c listTheatersByPostalCode. Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation warning: The global element 'urn:yahoo:movie:theater:TheaterList' has already been declared. Line 6, position 4. Schema validation warning: The global attribute 'urn:yahoo:movie:theater:id' has already been declared.
Line 7, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:TheaterListType' has already been declared. Line 10, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:TheaterType' has already been declared. Line 19, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:PostalAddressType' has already been declared.
Line 32, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:AmenityListType' has already been declared. Line 55, position 4.
Schema validation warning: The complexType 'urn:yahoo:movie:theater:MovieListType' has already been declared. Line 65, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:MovieType' has already been declared.
Line 71, position 4. Schema validation warning: The complexType 'urn:yahoo:movie:theater:ShowsType' has already been declared. Line 82, position 4.
Warning: Schema could not be validated. Class generation may fail or may produce incorrect results.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.