[xsd-users] runtime schema file location

Boris Kolpackov boris at codesynthesis.com
Wed May 23 11:57:51 EDT 2007


Hi Allan,

Erskine, Allan <allan.erskine at credit-suisse.com> writes:

> Is there any way I can avoid the need to keep the schema files in the
> same directory as the config files?  Ideally I'd be able to have a
> config file reside in one directory, with eg:
>
> ...
> <appConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance> " xsi:noNamespaceSchemaLocation="AppConfig.xsd">
> ...
>
> and my AppConfig.xsd file reside in the same directory as the binary.

You can use the properties argument to one of the parsing functions
as described in FAQ 2.4:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/faq/#2.4


hth,
-boris




More information about the xsd-users mailing list