开发者

XSD problem - trying to generate xsd from xml

I am trying to generate a schema from this xml file:

http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?rettype=xml&retmo开发者_运维百科de=xml&db=nucleotide&id=AB573763

I store it as s.xml and then tried:

xsd s.xml

It just does not finish it - seems to be stuck in an endless loop or something. What other options do I have to generate the xsd or can you see something wrong?

Thanks.

Christian


A schema generated from a single instance document is never going to be as high quality as one created from a schema as you can be almost certain that the generated schema will have distinct limitations.

I would suggest that you download the schema from the NIH (http://www.ncbi.nlm.nih.gov/dtd/NCBI_Seqset.dtd as @Tuomas Hietanen showed) and use a tool such as James Clark's Trang to generate a schema. Your resulting schema is likely to be of higher quality. If you have a copy of Oxygen you can simply use that as Trang is built-in.


On the fly, this site do the job :

http://www.freeformatter.com/xsd-generator.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜