[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soap-user
Subject:    XML Instance --> XML Schema ?
From:       Houman Moshtagh <dev_wsdl () yahoo ! de>
Date:       2002-08-29 13:52:05
[Download RAW message or body]

Hello,

 

I have studied the whole XML Schema on W3C site.   There is still something confusing \
me.

 

 

 

The XML Schema: po1.xsd

 

<schema xmlns="http://www.w3.org/2001/XMLSchema"

        xmlns:po="http://www.example.com/PO1"

        targetNamespace="http://www.example.com/PO1"

 

 

 

The XML Instance: po1.xml

 

<schema xmlns="http://www.w3.org/2001/XMLSchema"

        xmlns:po="http://www.example.com/PO1"

        targetNamespace="http://www.example.com/PO1"

 

 

I understand that the targetNamespace references to the customized XML Schema, which \
has to be written in the po1.xsd and in the po1.xml files.  But how can the parser \
looks after my customized XML Schema which is saved in the po1.xsd file?  How does it \
know where the XSD file is located?  As far as I understood the Namespaces the URI of \
a Namespace is just there to mention a unique namespace.  The Parser would not look \
after what's behind the URI.

 

 

Could someone help me to understand this? :o)

 

Houman

 



---------------------------------
Gesendet von http://mail.yahoo.de.
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de.


[Attachment #3 (text/html)]

<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><FONT face="Courier New">Hello,<?xml:namespace \
prefix = o ns = "urn:schemas-microsoft-com:office:office" \
/><o:p></o:p></FONT></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Courier New">I \
have studied the whole XML Schema on W3C site.<SPAN style="mso-spacerun: \
yes">&nbsp;&nbsp; </SPAN>There is still something confusing \
me.<o:p></o:p></FONT></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Courier New">The \
XML Schema: po1.xsd<o:p></o:p></FONT></SPAN></P> <P class=MsoPlainText style="MARGIN: \
0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT \
face="Courier New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText \
style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT \
face="Courier New">&lt;schema \
xmlns="http://www.w3.org/2001/XMLSchema"<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><FONT face="Courier New"><SPAN style="mso-spacerun: \
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</SPAN>xmlns:po="http://www.example.com/PO1"<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><FONT face="Courier New"><SPAN style="mso-spacerun: \
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</SPAN>targetNamespace="http://www.example.com/PO1"<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Courier New">The \
XML Instance: po1.xml<o:p></o:p></FONT></SPAN></P> <P class=MsoPlainText \
style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: \
EN-US"><o:p><FONT face="Courier New">&nbsp;</FONT></o:p></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><FONT face="Courier New">&lt;schema \
xmlns="http://www.w3.org/2001/XMLSchema"<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><FONT face="Courier New"><SPAN style="mso-spacerun: \
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</SPAN>xmlns:po="http://www.example.com/PO1"<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><FONT face="Courier New"><SPAN style="mso-spacerun: \
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
</SPAN>targetNamespace="http://www.example.com/PO1"<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Courier New">I \
understand that the targetNamespace references to the customized XML Schema, which \
has to be written in the po1.xsd and in the po1.xml files.<SPAN style="mso-spacerun: \
yes">&nbsp; </SPAN>But how can the parser looks after my customized XML Schema which \
is saved in the po1.xsd file? <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>How does \
it know where the XSD file is located?<SPAN style="mso-spacerun: yes">&nbsp; \
</SPAN>As far as I understood the Namespaces the URI of a Namespace is just there to \
mention a unique namespace.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The Parser \
would not look after what's behind the URI.<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Courier New">Could \
someone help me to understand this? :o)<o:p></o:p></FONT></SPAN></P> <P \
class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US \
style="mso-ansi-language: EN-US"><o:p><FONT face="Courier \
New">&nbsp;</FONT></o:p></SPAN></P> <P class=MsoPlainText style="MARGIN: 0cm 0cm \
0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face="Courier \
New">Houman<o:p></o:p></FONT></SPAN></P> <P>&nbsp;</P><p><br><hr size=1>Gesendet von \
<a href=http://de.yahoo.com/mail_de/tagline/?http://mail.yahoo.de>http://mail.yahoo.de</a>.<br>Möchten \
Sie mit einem Gruß antworten? <a \
href=http://de.yahoo.com/mail_de/tagline/?http://de.greetings.yahoo.com/>http://grusskarten.yahoo.de</a>.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic