[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: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Tue, 25 Jul 2006 22:36:22 +0530
Message-ID: <7870f82e0607251006g3e4d616cv7cbe903f05752aed@mail.gmail.com>
To: Balakrishnan <balakrishnan@alden.co.in>
Cc: xmlschema-dev@w3c.org
mukul gandhi

On 7/25/06, Balakrishnan <balakrishnan@alden.co.in> wrote:

> I using DTD for parsing the XML file,

DTDs are not used to parse XML. The XML parser parses XML data. DTDs
are used to specify the structure of XML, against which you validate
the XML instances.

>Suppose the xml have 100 elements and
> I want to validate just 10 element then How can I write the schema? and
> validate?

I don't think you can perform validation like this. You have to write
a DTD or a XSD schema for the whole XML. You validate the XML instance
against the whole DTD/XSD.

Regards,
Mukul

http://gandhimukul.tripod.com
Received on Tuesday, 25 July 2006 17:06:30 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.