Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Validation of xml file against DTD

Reply
Thread Tools

Validation of xml file against DTD

 
 
Pathik
Guest
Posts: n/a
 
      04-03-2007
Hi All,

currently I am developing one tool, in which i am converting input xml
file to output xml file using
xslt and xalan.

When output xml file is generated i have to validate it against its
dtd document.

How can i do that in xalan? Any suggestions please..

Thanks and Regards,
Pathik

 
Reply With Quote
 
 
 
 
Philippe Poulard
Guest
Posts: n/a
 
      04-03-2007
Pathik wrote:
> Hi All,
>
> currently I am developing one tool, in which i am converting input xml
> file to output xml file using
> xslt and xalan.
>
> When output xml file is generated i have to validate it against its
> dtd document.
>
> How can i do that in xalan? Any suggestions please..
>
> Thanks and Regards,
> Pathik
>


hi,

xalan won't validate your output ; you have to specify in xslt the
doctype on the output and pipe it to a validating parser
<xslutput
method="xml|html|text|name"
version="string"
encoding="string"
omit-xml-declaration="yes|no"
standalone="yes|no"
*doctype-public="string"*
*doctype-system="string"*
cdata-section-elements="namelist"
indent="yes|no"
media-type="string"/>

xslt2 has features about validating the result output, but it works on
W3C xml schemas

--
Cordialement,

///
(. .)
--------ooO--(_)--Ooo--------
| Philippe Poulard |
-----------------------------
http://reflex.gforge.inria.fr/
Have the RefleX !
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML document validation using Xerces SAX2XMLReader against external DTD mnshtiwari Software 0 04-14-2009 02:51 PM
Validate XML against DTD and/or XML Schema? Reid Priedhorsky Python 2 04-17-2006 08:46 AM
Validating XML against a DTD that is not supplied in the XML Schema Ben Jessel Java 0 08-05-2004 11:45 AM
validation of an xml file against a dtd or schema needed? Michael TEpperis XML 1 06-29-2004 08:45 PM
Re: XML Validation against a DTD Tad McClellan XML 0 08-13-2003 05:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57