Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 3rd, 2003, 02:28 PM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML Schema Validation without internet

Hello,

I am trying to validate XML with Xerces 1.7.0.

The server(IBM AIX) where Xerces is located does not have an Internet access
due to the security issue. The validation using Xerces SAX parser failed
with net access error so I tried to get rid of the name space
"http://www.w3.org/2001/XMLParser" from the <schema> tag and
substitue with
something else (local URI). Then, I have a bunch of errors with untyped
element string

XML schema:
<?xml version="1.0"?>
<schema xmlns="file:///c:/usr/apark"
        targetNamespace="file:///c:/usr/apark"
        elementFormDefault="qualified">

XML file:
<?xml version="1.0" ?><APARK
noNamespaceSchemaLocation="file:///c:/usr/apark/apark.xsd>

Errors are:
Error at (file prodInfo, line 1, char 101): Type not found in
file:///c:/usr/apark:string

My question is how to validate the XML against schema if there is no internet
access that I cannot process http://www.w3.org/2001/XMLSchema.

Any idea?

You can send me an email(apark3@csc.com) or reply to this message.

Austin
 
Old September 5th, 2003, 06:22 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You need to provide a local copy of the schema and change the noNamespaceSchemaLocation attribute, nothing else. Download the schema to your machine, copy to the server to a location that the account that Xerces runs under can read. Leave all the other stuff alone except for the attribute mentioned above.

--

Joe




Similar Threads
Thread Thread Starter Forum Replies Last Post
Bewildering schema error in validation. overcast XSLT 5 August 26th, 2008 01:16 PM
Schema Validation markus2000 XSLT 1 June 22nd, 2006 08:23 AM
XML schema validation problems BrendonMelville XML 3 February 15th, 2006 06:02 PM
XML validation with Schema/DTD using JAXP Hendrik XML 0 December 28th, 2004 06:58 AM
XML, XML Schema, JavaScript, ASP cyberjames2003 XML 0 June 4th, 2003 04:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.