aspose file tools*
The moose likes Servlets and the fly likes Please explain xmlns, xmlns:xsi, xsi:schemaLocation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please explain xmlns, xmlns:xsi, xsi:schemaLocation" Watch "Please explain xmlns, xmlns:xsi, xsi:schemaLocation" New topic
Author

Please explain xmlns, xmlns:xsi, xsi:schemaLocation

Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
At the start of web.xml are three parameters that I have been copying without understanding. I realize the xmlns is a "namespace" and xmlns, xmlns:xsi and xsi:schemaLocation are the schema for web.xml, but does that mean that every web container in the world is making repeated references to Sun's web site whenever it starts up? Talk about a single point of failure!

Do robust production systems keep local copies of these files?

What is the format of these files? What are my choices? Why are there variations of the xmi:schemaLocation parameter that seem to make no difference?

What is the alternate beginning of web.xml that begins with
<!DOCTYPE web-app PUBLIC "-//Sun ...

Can anyone point me to an online reference that explains this stuff?

Thanks very much!


Mike Gershman
SCJP 1.4, SCWCD in process
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
see if this makes any sense

http://www.xfront.com/HideVersusExpose.html
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Good question. I can't start servlet container in an isolated (w/o Interent) environment, until I setup a fake Sun's web site with this dtd.


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please explain xmlns, xmlns:xsi, xsi:schemaLocation