[xsd-users] XSD path location
Boris Kolpackov
boris at codesynthesis.com
Tue Feb 13 01:39:51 EST 2007
Hi Johan,
Boer den, Johan J (NSC) <Johan.denBoer at NS.NL> writes:
> We have this problem : In our xml message there is a xsd filename
> specified. Our server who parse this xml message must have the xsd in
> the same directory where the server is running, our xsd files are locate
> in a different directory. The server core dumps because it could not
> find these xsd files. We have tried to set the property
> fgXercesSchemaExternalSchemaLocation with the path the xsd located on.
> This thus not help. Our question : Is it possible to tell the parser in
> with directory the xsd are located
You need to specify the absolute path of the schema for this property.
Otherwise it is treated as being relative to the instance. See this FAQ
entry for more information:
http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/faq/#2.4
Also, if your application is parsing multiple instances, it could
make sense to cache the grammar and avoid re-parsing it every time,
as described in this article:
http://www-128.ibm.com/developerworks/webservices/library/x-xsdxerc.html
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070213/58919b61/attachment.pgp
More information about the xsd-users
mailing list