[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xml validation


validate integer

but is there not a parser out there that i can use that will do something like:

Parser p = new Parser();
p.setSchemaLocation(schemaFile.xsd);
p.parse(xmlFile.xml);

and this will ensure that each tag in the xml file has a corresponding definition in the schema, and will also throw an error if the schema defines that the information contained in a tag must be an integer, and in the xml file this information is a string.
This kind of parser cant be that simple to write and i can't affoard to process an xml file unless i know that the information in it is what it is supposed to be.

Thanks again,
Brian.

 

 "Gerben Rampaart (Casnet Brussel)" wrote:

It is not so hard to write this yourself ... just use the classes of Java or
C# ... they do the parsing for you and you can also make sure they use a
schema to verify it with ...

Gerben.

-----Original Message-----
From: Brian Shields [mailto:bgshields@y...]
Sent: 09 October 2002 13:03
To: xml-dev@l...
Subject: xml validation


Hi Guys,
I emailed about this subject yesterday, and got some answers. I have set up
the SAXParser to validate the XML, which is working, but i want to validate
the xml against a particular schema, is there a parser i can set a schema
location and it will ensure the xml file conforms to that schema otherwise
an exception occurs.
I hope i am making some sense!!!

Thanks in advance,
Brian.




Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com



Do you Yahoo!?
http://faith.yahoo.com - Exclusive Performances, Videos, & more
http://faith.yahoo.com

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.