[xsd-users] Q: schemaLocation in schema file
Boris Kolpackov
boris at codesynthesis.com
Mon Feb 10 23:17:38 EST 2014
Hi Ravi,
Rangarajan, Ravi_Sowmian <raviraja at qti.qualcomm.com> writes:
> My question was how do I tell code synthesis to ignore if schemaLocation
> field is completely missing from XML instance file or it could be present,
> but location part could be missing? (I mean any way other than telling
> code synthesis not to validate schema).
>
> xml_schema::properties schemaProperties;
>
> schemaProperties.schema_location(...)
If you specified the schema_location() correctly (full path
starting with file://, as described in the manual), then the
schemaLocation attribute in the XML document should be
completely ignored. Is that not the behavior you are getting?
Boris
More information about the xsd-users
mailing list