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

Tool for validating xml documents against schemas

Hi

I am searching for a tool that will allow me to validate an xml-document
against a schema. I have found several, and I have even made my own in
VB.NET but all the utilities I have found can not do what I am looking
for.

I need a utility that will validate a totally unqualified document against
an .xsd that imports three other .xsds

I seem to be able to validate an unqualified document against a schema in
a single file, but with several files it goes wrong. Any ideas? VB.NET
code that should be able to do the trick is also very welcome.

Thanks in advance.

--
Eliasen Jr.
Jul 20 '05 #1
2 2171
On Mon, 27 Oct 2003, Alexey Dmitriev wrote:
There's a free-standing validator from Sun which is written in Java.
Can't remember the URL (sorry), but it should be an easy find from
Google.

Sun Multi-Schema XML Validator

I have just tried it - It gives me an error in my .xsd;
"0" is invalid value for "mixed" attribute
4569:59@file:/c:/xsd/0p70dk_Reusable.xsd
failed to load a grammar.

But when I use my VB.NET tool to validate the xsd I get no errors. So what
am I to believe? :-/

--
Eliasen Jr.
Jul 20 '05 #2
In article <Pi*************************************@borg.cs.a uc.dk>,
Jan Eliasen <ja*@eliasen.dk> wrote:
% On Mon, 27 Oct 2003, Alexey Dmitriev wrote:
%
% > > There's a free-standing validator from Sun which is written in Java.
% > > Can't remember the URL (sorry), but it should be an easy find from
% > > Google.
% > Sun Multi-Schema XML Validator
% I have just tried it - It gives me an error in my .xsd;
% "0" is invalid value for "mixed" attribute
% 4569:59@file:/c:/xsd/0p70dk_Reusable.xsd
% failed to load a grammar.
%
% But when I use my VB.NET tool to validate the xsd I get no errors. So what
% am I to believe? :-/

Well, 0 is an invalid value for the `mixed' attribute, so if you have

mixed='0'

on one of your xs:complexType elements, believe the Sun validator.
Try setting it to `true' or `false'.
--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #3

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

Similar topics

6
by: COHENMARVIN | last post by:
I'm just starting out in XML for my business, and already I'm given a large and complicated XML schema. If I write XML files based on the schema, is there any tool that 1. Tells me if I'm valid...
2
by: Mike:o | last post by:
I need to validate XML documents (orders) against their schema before processing. The PurchaseOrder schema that we use references 3 other schemas using the <imports ...> element. Here is the...
1
by: XML Schema Validation | last post by:
I am creating a .NET application that will be receiving XML purchase order documents in xCBL 2.x, xCBL 3.0 and xCBL 3.5 format. I'm trying to figure out how to validate these XML docs against the...
6
by: Iain | last post by:
I've got a system which takes an XML file, translates it into an update gram and then loads it into my database with SQLXML3 (all in dot net). But it's fragile. And the SQLXML 3 error reporting...
1
by: Ryan | last post by:
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes"...
3
by: Shailendra Batham | last post by:
hi guys I need your suggestions / opinion for doing this the right way. I have a XML and a Schema for the same What I want is when its validated against the schema, it should give custom...
2
by: josh | last post by:
Hi, I am trying to validate cXML documents against cXML.dtd using the XmlValidatingReader. If I set the XMLValidatingReader's ValidatingType to ValidationType.DTD, I get the following...
1
by: Chris Lieb | last post by:
I have an XML Schema file that I know is correct becuase I currently use it in a VB6 program to validate XML documents. Also, if I load an XML file into VS2005 that is not valid against this...
4
by: agda.karlberg | last post by:
Hello, I need to remove the DTD reference from an xml document, the reason for this is that we want to validate against a schema instead (which we have locally). It takes up to a minute to fetch...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.