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

RE: How to use DTD and Schema in the single XML file?

From: Balakrishnan <balakrishnan@alden.co.in>
Date: Tue, 25 Jul 2006 21:59:38 +0530
To: "Mukul Gandhi" <gandhi.mukul@gmail.com>
Cc: <xmlschema-dev@w3c.org>
Message-ID: <POEDIJKJMMMLAKHPKADCEEMJCEAA.balakrishnan@alden.co.in>
alden.co.in

Thanks for the replay

I using DTD for parsing the XML file, Suppose the xml have 100 elements and
I want to validate just 10 element then How can I write the schema? and
validate?

Many thanks
Bala


-----Original Message-----
From: Mukul Gandhi [mailto:gandhi.mukul@gmail.com]
Sent: Tuesday, 25 July 2006 09:55
To: Balakrishnan
Cc: xmlschema-dev@w3c.org
Subject: Re: How to use DTD and Schema in the single XML file?


I am not sure if there are any validators in the market which offer
such composite validations.

But I feel, you can surely perform validation of a XML with both DTD
and XSD in a serial fashion.

Something like following:

Input XML --> validation against DTD --> if validation succeeds -->
validation against XSD --> if validation succeeds, use XML else
discard.

Regards,
Mukul

http://gandhimukul.tripod.com

On 7/24/06, Balakrishnan <balakrishnan@alden.co.in> wrote:
>
> Dear All
>
> I have the XML, and it's parse through DTD, but I want to validate some
> element only through Schema. Is it possible? If yes the please give a
> example please.
>
> Many thanks
> Bala
Received on Tuesday, 25 July 2006 16:54:59 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.