简体   繁体   中英

How to validate xml document against relaxNG schema in libxml++

I'm rather new to parsing xml in c++ and to xml in general. I'm trying to parse my document with SAXParser from libxml++ library, however, I would also like it to validate my document against a relaxNG schema. I've found that libxml2, which is underneath libxml++, has a relaxNG module, but I was unable to find out how to use its libxml++ binding. Any clues or code snippets would be appreciated.

After several tries it occured to me, that there is no relaxNG wrapper in libxml++, that is why I was unable to find anything in the net. Finally I decided to do the thing using libxml2, just for validation purposes, and then parse xml using SAXParser from libxml++.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM