473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Validation problems

I've posted this here and in the comp.lang.java.programmer group
because I'm not really sure if it's a Java problem or an XML problem!

Basically I have written a Java application which loads an XML file and
validates it (it is going to do other stuff with it as well once I get
this validation problem sorted!). I am using JDOM and Xerces-J 2.7.1.
It starts to validate fine but then reports a whole load of errors
which I obtained the details of using Java. The first few look like
this:

WARNING: schema_reference.4: Failed to read schema document
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the
root element of the document is not <xsd:schema>. at line 16, column
121 in entity
http://www.dur.ac.uk/s.j.marjoribank...ml/rawData.xsd

WARNING: schema_reference.4: Failed to read schema document
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the
root element of the document is not <xsd:schema>. at line 10, column
121 in entity http://www.dur.ac.uk/s.j.marjoribanks/agsml/agsml.xsd

WARNING: schema_reference.4: Failed to read schema document
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the
root element of the document is not <xsd:schema>. at line 9, column 121
in entity
http://www.dur.ac.uk/s.j.marjoribank...nformation.xsd

WARNING: schema_reference.4: Failed to read schema document
'AgsmlBase.xsd', because 1) could not find the document; 2) the
document could not be read; 3) the root element of the document is not
<xsd:schema>. at line 10, column 43 in entity
http://www.dur.ac.uk/s.j.marjoribank...nformation.xsd

WARNING: schema_reference.4: Failed to read schema document
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the
root element of the document is not <xsd:schema>. at line 9, column 121
in entity
http://www.dur.ac.uk/s.j.marjoribank...oryTesting.xsd
The first few errors are all like that, reporting that it could not
access a schema file and then there are loads which i think are
probably as a result of the schema file being inaccessible.
My schema imports quite a few other schemas, but there only seems to be
a problem loading 3 of them. The AgsmlBase.xsd one which is in the same
directory as the target schema of my instance document, the
http://www.schemas.opengis.net/gml/3...se/feature.xsd schema and an
XLinks one as well (not shown in the errors above). I don't understand
why it is not able to access them though? If I validate my file in
XMLSpy2006 it is ok (apart from one nasty bug which the Altova support
team inform me is a problem with the software). I have checked the URLs
and the schemas are definitley there and I can access them so why can't
it access them?

One though I did have was that if one of them is already imported into
one of the schemas which I import, could this cause a problem? It
doesn't in XMLSpy though and I don't think it should really?

Thanks

Steve

Mar 1 '06 #1
1 1927
Ok, well I've fixed the problem with the agsmlBase schema, one of the
schemas had a typo and was trying to find AgsmlBase instead.

However, the problem still remains with the other one. It says it
either can't find it, can't access it or it's not a schema. However, if
you navigate to the URI in a web broswer it is obviously available and
a valid schema as well. I tried validating both mine and the one which
it can;t find using the XSV validator
(http://www.w3.org/2001/03/webdata/xsv) and it said both were fine. How
comes it can validate my file but xerces fails miserably?!

Steve

Mar 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
3
by: arc | last post by:
I have a server object that performs zipcode validation based on zipcode entered in the web form. Ideally this should work as follows: Once the zip code is entered in the edit box it should...
67
by: Scott Meyers | last post by:
I have a web site that, due to maintenance by several people, some of whom are fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point where I'm pretty sure it's suffering...
41
by: Gérard Talbot | last post by:
Cross-posted to: comp.infosystems.www.authoring.html and alt.html Followup-to: comp.infosystems.www.authoring.html 1- One day, I stumbled across a website that offers to validate webpages. What...
16
by: Hosh | last post by:
I have a form on a webpage and want to use JavaScript validation for the form fields. I have searched the web for form validation scripts and have come up with scripts that only validate...
0
by: Brian Conway | last post by:
I am having some validation and insertion problems. I am using a date picker that takes the selected date and puts it to ("dd-MMM-yyyy") format, as this was the only format that Oracle would...
2
by: Rafael Veronezi | last post by:
I have a little problem while working with Validation Controls in extensive forms... When the user reaches the end, and something is wrong, it just highlights the messages (a client-side script)......
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
1
by: Simon | last post by:
Hi, Has anyone experienced the problem where validation controls stop a previously working page from submitting. Sometimes, when I move between my work machine and my home machine validation...
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.