[xsd-users] Problems with generated schema

Boris Kolpackov boris at codesynthesis.com
Sun Jul 22 02:57:18 EDT 2007


Hi Olaf,

ope <ope-devel at gmx.de> writes:

> I build a tree parser for the metalink schema at
> http://www.metalinker.org/schema/3.0/metalink.xsd by:
>
> [...]
>
> and get a lot of errors:
>
>
> metalink.xsd:2:216 error: Unknown element 'xs:schema'

Are you getting these errors when running XSD or your application?
If it is your application then it is not clear why you are parsing
the schema itself (metalink.xsd). I would expect you to try it on
some XML document of the metalink vocabulary.


> Anyway, how can I rename the anonymous types with useful names other
> than counted version1 (or hash1 by use of xsd 3.0.0b2)?

Use the --anonymous-regex option. For details see the XSD Compiler
Command Line Manual:

http://www.codesynthesis.com/projects/xsd/documentation/xsd.xhtml

and FAQ 1.1:

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


hth,
-boris




More information about the xsd-users mailing list