Xerces-C validate xml with hardcoded xsd
问题 I'm writing a library which takes xml files and parses them. To prevent users from feeding inalid xmls into my application i'm using xerces to validate the xml files via an xsd. However, i only manages to validate against xsd-files. Theoretically an user could just open this file and mess around with it. That's why i would like my xsd to be hardcoded in my library. Unfortunately i haven't found a way to do this with XercesC++, yet. That's how it is working right now... bool XmlParser: