aspose file tools*
The moose likes XML and Related Technologies and the fly likes How can XML Parser find Schema when without access to internet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How can XML Parser find Schema when without access to internet " Watch "How can XML Parser find Schema when without access to internet " New topic
Author

How can XML Parser find Schema when without access to internet

walter wang
Ranch Hand

Joined: Jun 02, 2001
Posts: 156
here in my XML file, it defines some name spaces , and schema referred by name space, those schema file, as you can see, are located on internet.
my program XML parser works fine and able to parse those xml element defined in those schema files even without access to internet,

my question is, how can XML parser find those schema files from internet even without access to internet ?

Any hints will be more than welcome!


xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd"


public class Walter { public boolean is_Working_Now (boolean is_boss_Coming) { return is_boss_Coming; }
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 539
    
    3
Xml parsers can be categorized, either by nature or by property setting, as validating parser and non-validating parser.
my program XML parser works fine and able to parse those xml element defined in those schema files even without access to internet,
my question is, how can XML parser find those schema files from internet even without access to internet ?

The easiest way to determine the kind of it yourself is to give the xml an element or something not "defined" in any of those schemas. If you can still parser it, the parser you are using is non-validating, otherwise it is validating.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can XML Parser find Schema when without access to internet