Advertisement

08.16.2008 at 09:19PM PDT, ID: 23654243
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

XML Validation Error

Asked by catonthecouchproductions in .NET, Extensible Markup Language (XML)

Tags:

The code below keeps generating the following error when I try to validate through XML Spy.

"Unable to load a schema with target namespace 'http://ostore/mediamart/ns' from '..common/MMSchema.xsd'.

Thanks
RyanStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
<?xml version="1.0" encoding="UTF-8"?>
<!--	
		Purpose:	We were directed to combine the content of the three
						individual XML files containing the data on books, music,
						and movies sold by the online store, MediaMart Online.
						
						See the detail below for the three types of merchandise:
 
						The Book data is to include book name/title,
						author, genre, the media format, and the price on the book.
						Genre element values: Nonfiction or Fiction
						Format values: Hardcover or Paperback
						Price: min of 1.00 and max of 999.99; must include $ sign.
 
						The Music data is to include the name of the artist
						or composer, name/title of the recording, genre, the media format,
						and the asking price for the recording.
						Genre element values: rock, classical,opera, jazz, blues, rap, or pop
						Format values: Cassette or CD
						Price: min of 10.00 and max of 999.99; must include $ sign.
 
						The data is to include the name/title of
						the movie, genre, the actors and/or actresses appearing in
						the movie, the asking price for the movie, the year movie was
						released, and the media format.
						Genre element values: comedy, drama, fantasy, children,
							musical, or family
						Format values: VHS or DVD
						Price: min of 1.00 and max of 999.99; must include $ sign.
 
						New schema was defined for this XML file combining the
						three kinds items sold online.  The schema is MMSchema.
						This file was found to be well formed and valid.
 
						Validation performed with XMLSpy v2008 rel 2.
-->
<mm:MediaMart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
				   xmlns:mm="http://ostore/mediamart/ns"
				   xsi:schemaLocation="http://ostore/mediamart/ns ../common/MMSchema.xsd"
>
	<bk:Books xmlns:bk="http://ostore/books/ns">
		<Book>
			<Name>When Character was King</Name>
			<Author>Peggy Noonan</Author>
			<Genre>Nonfiction</Genre>
			<Format>Hardcover</Format>
			<Price>$14.95</Price>
		</Book>
		<Book>
			<Name>Democracy in America</Name>
			<Author>Alexis de Tocqueville</Author>
			<Genre>Nonfiction</Genre>
			<Format>Hardcover</Format>
			<Price>$22.50</Price>
		</Book>
		<Book>
			<Name>Tom Sawyer</Name>
			<Author>Samuel Clemens</Author>
			<Genre>Fiction</Genre>
			<Format>Paperback</Format>
			<Price>$4.95</Price>
		</Book>
		<Book>
			<Name>The Bear and the Dragon</Name>
			<Author>Tom Clancy</Author>
			<Genre>Fiction</Genre>
			<Format>Paperback</Format>
			<Price>$7.95</Price>
		</Book>
		<Book>
			<Name>The Coming Age</Name>
			<Author>Stewart Oates</Author>
			<Genre>Nonfiction</Genre>
			<Format>Hardcover</Format>
			<Price>$19.95</Price>
		</Book>
		<Book>
			<Name>Mars and Beyond</Name>
			<Author>Linda Rao</Author>
			<Genre>Nonfiction</Genre>
			<Format>Paperback</Format>
			<Price>$4.95</Price>
		</Book>
		<Book>
			<Name>The Complete Works</Name>
			<Author>William Shakespeare</Author>
			<Genre>Fiction</Genre>
			<Format>Hardcover</Format>
			<Price>$39.95</Price>
		</Book>
		<Book>
			<Name>Lectures on Physics</Name>
			<Author>Richard Fenyman</Author>
			<Genre>Nonfiction</Genre>
			<Format>Paperback</Format>
			<Price>$29.95</Price>
		</Book>
		<Book>
			<Name>David Copperfield</Name>
			<Author>Charles Dickens</Author>
			<Genre>Fiction</Genre>
			<Format>Hardcover</Format>
			<Price>$12.95</Price>
		</Book>
		<Book>
			<Name>Friday</Name>
			<Author>Robert Heinlein</Author>
			<Genre>Fiction</Genre>
			<Format>Paperback</Format>
			<Price>$4.95</Price>
		</Book>
		<Book>
			<Name>The Civil War Vol. I</Name>
			<Author>Shelbe Foote</Author>
			<Genre>Nonfiction</Genre>
			<Format>Paperback</Format>
			<Price>$19.95</Price>
		</Book>
		<Book>
			<Name>Scippio Africanus</Name>
			<Author>Doug Whyte</Author>
			<Genre>Nonfiction</Genre>
			<Format>Paperback</Format>
			<Price>$9.95</Price>
		</Book>
	</bk:Books>
	<mu:Music xmlns:mu="http://ostore/music/ns">
		<Recording>
			<Artist>Beatles</Artist>
			<Name>Abbey Road</Name>
			<Genre>Rock</Genre>
			<Format>Cassette</Format>
			<Price>$12.95</Price>
		</Recording>
		<Recording>
			<Artist>Beatles</Artist>
			<Name>The White Album</Name>
			<Genre>Rock</Genre>
			<Format>CD</Format>
			<Price>$14.95</Price>
		</Recording>
		<Recording>
			<Artist>Mile Davis</Artist>
			<Name>Cookin'</Name>
			<Genre>Jazz</Genre>
			<Format>CD</Format>
			<Price>$11.50</Price>
		</Recording>
		<Recording>
			<Composer>Richard Wagner</Composer>
			<Name>Das Rheingold</Name>
			<Genre>Opera</Genre>
			<Format>CD</Format>
			<Price>$29.95</Price>
		</Recording>
		<Recording>
			<Artist>Jethro Tull</Artist>
			<Name>Stand Up</Name>
			<Genre>Rock</Genre>
			<Format>Cassette</Format>
			<Price>$14.95</Price>
		</Recording>
		<Recording>
			<Composer>Richard Strauss</Composer>
			<Name>Wind Concertos</Name>
			<Genre>Classical</Genre>
			<Format>CD</Format>
			<Price>$17.48</Price>
		</Recording>
		<Recording>
			<Composer>Antonin Dvorak</Composer>
			<Name>The 8th Symphony</Name>
			<Genre>Classical</Genre>
			<Format>CD</Format>
			<Price>$21.55</Price>
		</Recording>
		<Recording>
			<Artist>The Police</Artist>
			<Name>The Police</Name>
			<Genre>Rock</Genre>
			<Format>Cassette</Format>
			<Price>$14.95</Price>
		</Recording>
		<Recording>
			<Artist>Duke Ellington</Artist>
			<Name>Live at Newport</Name>
			<Genre>Jazz</Genre>
			<Format>CD</Format>
			<Price>$19.95</Price>
		</Recording>
		<Recording>
			<Composer>Carl Orff</Composer>
			<Name>Carmina Burana</Name>
			<Genre>Classical</Genre>
			<Format>CD</Format>
			<Price>$11.95</Price>
		</Recording>
		<Recording>
			<Composer>Giuseppe Verdi</Composer>
			<Name>Aida</Name>
			<Genre>Opera</Genre>
			<Format>CD</Format>
			<Price>$29.95</Price>
		</Recording>
	</mu:Music>
	
	<mo:Movies xmlns:mo="http://ostore/movies/ns">
		<Movie>
			<Name>The Sting</Name>
			<Genre>Comedy</Genre>
			<Actor>Paul Newman</Actor>
			<Actor>Robert Redford</Actor>
			<Price>$9.95</Price>
			<yearReleased>1974</yearReleased>
			<Format>VHS</Format>
		</Movie>
		<Movie>
			<Name>Mr. Smith Goes to Washington</Name>
			<Genre>Drama</Genre>
			<Actor>James Stewart</Actor>
			<Actor>Claude Raines</Actor>
			<Actress>Jean Arthur</Actress>
			<Price>$9.95</Price>
			<yearReleased>1939</yearReleased>
			<Format>VHS</Format>
		</Movie>
		<Movie>
			<Name>The Fellowship of the Ring</Name>
			<Genre>Fantasy</Genre>
			<Actor>Ian McKellen</Actor>
			<Price>$19.95</Price>
			<yearReleased>2001</yearReleased>
			<Format>DVD</Format>
		</Movie>
		<Movie>
			<Name>Crimson Tide</Name>
			<Genre>Drama</Genre>
			<Actor>Denzel Washington</Actor>
			<Actor>Gene Hackman</Actor>
			<Price>$8.95</Price>
			<yearReleased>1995</yearReleased>
			<Format>DVD</Format>
		</Movie>
		<Movie>
			<Name>Unforgiven</Name>
			<Genre>Drama</Genre>
			<Actor>Clint Eastwood</Actor>
			<Actor>Gene Hackman</Actor>
			<Actor>Morgan Freeman</Actor>
			<Actor>Richard Harris</Actor>
			<Price>$9.95</Price>
			<yearReleased>1992</yearReleased>
			<Format>VHS</Format>
		</Movie>
		<Movie>
			<Name>Manhattan</Name>
			<Genre>Comedy</Genre>
			<Actor>Woody Allen</Actor>
			<Actress>Diane Keaton</Actress>
			<Actress>Mariel Hemingway</Actress>
			<Price>$7.95</Price>
			<yearReleased>1979</yearReleased>
			<Format>VHS</Format>
		</Movie>
		<Movie>
			<Name>Rocky</Name>
			<Genre>Drama</Genre>
			<Actor>Sylvester Stallone</Actor>
			<Actress>Talia Shire</Actress>
			<Price>$8.95</Price>
			<yearReleased>1976</yearReleased>
			<Format>VHS</Format>
		</Movie>
		<Movie>
			<Name>The Godfather</Name>
			<Genre>Drama</Genre>
			<Actor>Marlon Brando</Actor>
			<Actor>Al Pacino</Actor>
			<Actress>Diane Keaton</Actress>
			<Actor>Robert Duval</Actor>
			<Actor>James Caan</Actor>
			<Actress>Talia Shire</Actress>
			<Price>$12.95</Price>
			<yearReleased>1972</yearReleased>
			<Format>DVD</Format>
		</Movie>
		<Movie>
			<Name>Harold and Maude</Name>
			<Genre>Comedy</Genre>
			<Actor>Bud Cort</Actor>
			<Actress>Ruth Gordon</Actress>
			<Price>$9.95</Price>
			<yearReleased>1971</yearReleased>
			<Format>VHS</Format>
		</Movie>
		<Movie>
			<Name>Stalag 17</Name>
			<Genre>Drama</Genre>
			<Actor>William Holden</Actor>
			<Price>$9.95</Price>
			<yearReleased>1953</yearReleased>
			<Format>VHS</Format>
		</Movie>
	</mo:Movies>
	
</mm:MediaMart>
[+][-]08.16.2008 at 11:03PM PDT, ID: 22246252

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 05:15AM PDT, ID: 22251053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.18.2008 at 05:21AM PDT, ID: 22251085

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Extensible Markup Language (XML)
Tags: XML
Sign Up Now!
Solution Provided By: Gertone
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628