开发者

Parsing XSD using Xerces

开发者 https://www.devze.com 2023-03-27 15:22 出处:网络
I need to parse a generic XSD and create sample XMLs conforming to the XSD. I am using Xerces for Java.

I need to parse a generic XSD and create sample XMLs conforming to the XSD. I am using Xerces for Java.

Does Xerces provide support for parsing XSD or do i have开发者_高级运维 to parse it as a regular XML ? If theres support in Xerces, how do i do it? Also could someone point to way/technique by which i can create all possible XMLs conforming to an XSD.

if possible please share code link or code snippet.

Thanks.


I am not sure which programming language you want to use but assuming Java, you can use XSOM or JaxMe to parse XSD's. You can extract the schema information and then generate the xml's based on the parsed meta data. Or check if XIG: Xml Instance Generator meets your requirement.

0

精彩评论

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

关注公众号