LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-13-2013, 05:30 AM   #1
exceed450
Member
 
Registered: Feb 2013
Posts: 37

Rep: Reputation: Disabled
How are the xml schemas located?


Does someone know how for example tomcat is able to check or retrieve xml schemas defined in the configuration? I mean, the tomcat configuration and other configuration for other products says to to try to find it on the internet and obviously there is no internet access on a server (for access out).

Take this for example from a message queue product:

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans

How will this message queue product be able to check the schema definitions to see if the xml document contains valid tags when it says that the xmlns is at a site on the internet and the server dont have access to that site, is the schema bundled with the product in some way, and if it is, how does the product know where to look for the schema definitions ?

Edit: Just saw this one http://stackoverflow.com/questions/1...ace-attributes, but it still doesnt explain how the tomcat or other configurations are able to verify which tags are valid, i mean, how does for example tomcat know where the schema definitions are defined?

Edit2: This http://stackoverflow.com/questions/5...schemalocation, is conflicting with what i just wrote above it seems

Last edited by exceed450; 03-13-2013 at 05:43 AM.
 
Old 03-14-2013, 04:41 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
It depends on XML parser if it validate with schema and how to react on invalid data. I don't known about your sample, but it is possible that application which use xml data ignore schema and use other build-in simple validation during data retrieval.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Draw professional schemas romagnolo Linux - Software 2 06-15-2011 02:36 AM
XML Schemas and Java XML Parsers manolakis Programming 1 03-20-2009 08:51 PM
Automount -LDAP schemas naveenlinux SUSE / openSUSE 0 11-21-2005 12:37 AM
OpenLDAP schemas? paul_mat Linux - Networking 1 07-20-2005 12:50 PM
konsole schemas?? sk8guitar Linux - General 1 07-25-2003 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration