473,408 Members | 1,786 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,408 software developers and data experts.

A query regarding validation of xml-schemas

Dear Sir,
My problem is that i am required to validate a given schema
against the standard DTDs provided by w3.org- namely xmlschema.dtd and
datatypes.dtd.
Presently, I load the given schema into an ActiveXObject and use
the function validate(). The function validate() does some sort of
validation of the given schema aginst the standard dtds mentioned
above and throws error in case the validation fails.
But there are many cases which this function validate() does not
check for .. like for example, the function does not check whether the
value of the maxOccurs attribute is always greater than or equal to
the minOccurs attribute. Similarly there are many issues that the
function validate() does not address.
I would like to know whether there is any available function which
checks for all the cases and decides if the schema conforms to the
standard dtds provided by w3.org.
or are we supposed to create our own functions to check for these
extra cases not addressed by function validate().
I would greatly appreciate it if you could mail me the answer to this
query.
Thankyou.
regards,
Divya Alice George
Jul 20 '05 #1
1 1528
"Divya Alice George" <di****@yahoo.com> wrote in message
news:65**************************@posting.google.c om
Dear Sir,
There is more than one in this group. ;-)
[...]
But there are many cases which this function validate() does not
check for .. like for example, the function does not check whether the
value of the maxOccurs attribute is always greater than or equal to
the minOccurs attribute.
You cannot accomplish such a thing with a DTD, it is technically
impossible. Thus it is not the fault of the validate() method not to
find this kind of error.
Being valid does not imply that the XML file makes sense.
or are we supposed to create our own functions to check for these
extra cases not addressed by function validate().
Have a look at the SOM (Schema Object Model), it may help you a bit
further. At least it may keep you from implementing high level checking
from scratch, reducing the task to a few "for each ... in ..." loops.
I would greatly appreciate it if you could mail me the answer to this
query.


SELECT 'No'

Martin

P.S.: I don't think it is to much asked to check one thread in one
newsgroup, even through groups.google.
Jul 20 '05 #2

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

Similar topics

1
by: Mike | last post by:
Note: My XML experience to date has (unfortunately) been limited to reading and thinking, rather than implementation. Anyway, I am in the process of trying to figure out the most efficient way...
0
by: Brian | last post by:
I am having alot of trouble getting a XML document validated with a schema. I got a sample document and schema off of w3schools.com, which passed an online xml validator:...
0
by: motoman | last post by:
i have the following code (see below), i run my validation and get unexpected results. Public ID: null System ID: file:///C:/DATA/Sandpit/Eclipse/workspace/dtdValidation/memory.xml Line number:...
1
by: Bart Van der Donck | last post by:
Jomo (jomo@dynamicdeveloper.co.uk) wrote: > How do I generate a request from an HTML search form > (or button/hyperlink) to search/query an XML data file, > using CGI scripts, and have the...
2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
9
by: rbronson1976 | last post by:
Hello all, I have a very strange situation -- I have a page that validates (using http://validator.w3.org/) as "XHTML 1.0 Strict" just fine. This page uses this DOCTYPE: <!DOCTYPE html PUBLIC...
2
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in...
2
by: Marcin Cenkier | last post by:
Hi, I want to validate a DOM document, and if I build DOM from a stream using documentBuilder.parse() validation using validator.validate(DOMSource) works, but if I create the same document...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
1
by: NamelessNumberheadMan | last post by:
I can't seem to get Struts 2 validations to work. I have been converting from Strust 1 to Struts 2. So far I've refactored all the code (for this particular module) on the back end, rewrote the jsp...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.