|
Well, it is a good question. I realize i referred to the "System id" some what loosely. In a DTD the System Id usually points to the http location where DTD is available. You want to choose a string that is going will uniquely identify the Schema a XML instance is based on. So natural candidate would be the targetNamespace. Another candidate can be the http location hint for schema suggested by the XML instance. E.g: Consider the web.xml: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" System Id can be : http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd However it is not mandatory that the all XMLs leave schemaLocation hint. -Prashant Decoker, Lydie (Lydie) wrote: Yes Prashant. It does help a lot. One more question: hou is the system ID set? Is it via the XML?Lydie. -----Original Message----- From: Prashant [mailto:[EMAIL PROTECTED]] Sent: Friday, September 22, 2006 10:39 To: [email protected] Subject: Re: Trying to validate XML files using several XSD Decoker, Lydie (Lydie) wrote: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Trying to validate XML files using several XSD Decoker, Lydie (Lydie)
- Re: Trying to validate XML files using several... Michael Glavassevich
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- Re: Trying to validate XML files using sev... Prashant
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using sev... Michael Glavassevich
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- RE: Trying to validate XML files using sev... Michael Glavassevich
- RE: Trying to validate XML files using several... Decoker, Lydie (Lydie)
- Re: Trying to validate XML files using sev... Stanimir Stamenkov
