473,788 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_referenc e.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_referenc e.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_referenc e.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_referenc e.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_referenc e.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 1960
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
3924
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 adresses and so on. I thought it might be a better way to programm an automated, dynamic form validation that works for all kinds of fields, shows the necessary error messages and highlights the coresponding form fields.
3
1410
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 validate the entry with this server object before moving to enter state in the next dropdown field. - What is the event by which we can do this for the edit box? (OnBlur doesnt seem to capture the text though it fires up the server object) - This...
67
5354
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 from bit rot. Though the pages seem to display okay under IE and FF, I really think it's time for an under-the-hood cleaning. I recently received a copy of Molly Holzschlag's "Spring Into HTML and CSS," and in the first chapter, she makes a big...
41
2656
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 was really special about that site is that the validation service was available in Russian, German, Spanish and English. Now, I can't find this site anymore. I did search google. Do you know such site? What's its url? 2- Generally speaking, the...
16
2252
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 individual fields, such as an "Email Validation Script" or a "Phone Validation Script". Is it ok to put all these scripts on page as they are or should they be joined in some way together to be one script? I'm a total JavaScript newbie and am completely...
0
1996
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 accept on an insert, however, when it does a comparision validation it is failing. I have StartDate = comparing to an invisible textbox that contains todays date EndDate = comparing to StartDate needing to be >= SetupDate = comparing to StartDate...
2
4423
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)... But, if the field is on the top of the form, and the user doesn't search, and keep clicking on the button, he will think that there's a problem on the form... I would like to know how could I implement a way that the click button does a...
14
6311
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) show the error message next to the control. For example, if the text field is empty with RequiredField Validator control, it can show the value in ControlToValidate property in two ways as I mentioned. Please advise. Thanks!
1
1454
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 that was previously working perfectly just starts to bugger up the page. One normally happens is I'll have it working fine at work and then when I
0
1707
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 - CompareValidator, RangeValidator, RequiredFieldValidator, and a ValidationSummary. The page using ucBinEdges is a content page working in conjunction with a master page. The master page defines two ContentPlaceHolders: cphLeftNav and cphReportContent. ...
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10173
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.