Answered by:
XML validation using DTD

Question
-
Hi,
I have an XML document which contains a DTD definition pointing to a server through a URL as :
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
Instead of referring the URL, i have the local copy of this DTD stored on my hard drive. How do i verify the XML doc i have using the locally stored DTD. I know i have to use a XMLResolver but not able to figure out to do this exactly.
Thanks
Kulvinder Singh
Kulvinder- Moved by jack 321 Thursday, August 14, 2008 5:31 AM off topic (Moved from Visual C# General to Off-Topic Posts (Do Not Post Here))
Monday, August 11, 2008 11:14 AM
Answers
-
Discussion in Data Platform Development
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, December 30, 2011 5:27 AM
Thursday, August 14, 2008 5:31 AM -
This was moved out of the C# forum.
You can ask this in another forum.
Or I can move it into a specific MSDN forum if you'd like.
This is regarding your code:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, December 30, 2011 5:29 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, December 30, 2011 5:29 AM
Friday, December 30, 2011 5:29 AM
All replies
-
Discussion in Data Platform Development
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, December 30, 2011 5:27 AM
Thursday, August 14, 2008 5:31 AM -
This was moved out of the C# forum.
You can ask this in another forum.
Or I can move it into a specific MSDN forum if you'd like.
This is regarding your code:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, December 30, 2011 5:29 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, December 30, 2011 5:29 AM
Friday, December 30, 2011 5:29 AM