[xsd-users] Validation of XML files using a cached schema with
xsd parser
Boris Kolpackov
boris at codesynthesis.com
Tue Oct 14 10:37:59 EDT 2025
David White <dawhite32 at gmail.com> writes:
> Does the C++/Parser support validation of xml files using a cached (or
> hard-coded) schema (rather than pointing to an external schema via
> xsi:noNamespaceSchemaLocation="schema.xsd"), as suggested by you for
> C++/Tree [1]? If so, could you please provide a basic example?
Assuming you are using Xerces-C++ as the underlying parser, then yes.
I don't have an example handy, but the following section from the
documentation should give you some hints (in particular, look at
no_namespace_schema_location() in properties):
https://codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/#7.1
More information about the xsd-users
mailing list