문제

I have a problem with XML validation with expat. I have not found document or wiki that can help me to validate my xml document.

Is it possible to validate my XML document via xml schema (xsd file) with libexpat and a C program?

If the response is no , how to validate it via a DTD file?

Thanks in advance for your help.

도움이 되었습니까?

해결책

Also from the FAQ:

How can I get expat to validate my XML documents?

You can't. expat is not a validating parser.

You could try using libxml2.

다른 팁

From the FAQ:

How can I get expat to read my DTD?

Compile with -DXML_DTD and call XML_SetParamEntityParsing.

http://www.jclark.com/xml/expatfaq.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top