How to generate xpath from xsd?

后端 未结 3 1848
旧巷少年郎
旧巷少年郎 2021-01-12 02:10

How can I generate xpath from an xsd? XSD validates an xml. I am working in a project where I am generating a sample XML from the xsd using java and then generating xpath fr

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-12 02:12

    I've been working on a little library to do just this, though for larger and more complex schemas, there are issues you will need to address on a case-by-case basis (e.g., filters for certain nodes). See https://stackoverflow.com/a/45020739/3096687 for a description of the solution.

提交回复
热议问题