Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "Balakrishnan" <balakrishnan@-----.--.-->
To: "Mukul Gandhi" <gandhi.mukul@-----.--->
Date: 7/26/2006 3:18:00 AM
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@g...]
Sent: Tuesday, 25 July 2006 09:55
To: Balakrishnan
Cc: xmlschema-dev@w...
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@a...> 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


From mike@s... Tue Jul 25 17:00:48 2006
Received: from lisa.w3.org ([128.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent