Giter VIP home page Giter VIP logo

xsd_elpath's Introduction

xsd_elpath

Prints the full path and type of all the elements in a xsd file.

Additionally, you can also specify a root element from which the paths will be printed.
The element path and type are separated with \t.

Usage as standalone

java -jar xsd_elpath.jar <xsdFile.xsd> [ElementName]

Example

Using this schema:

java -jar xsd_elpath.jar shiporder.xsd

Yields the output:

/shiporder      null
/shiporder/item null
/shiporder/item/note    xs:string
/shiporder/item/price   xs:decimal
/shiporder/item/quantity        xs:positiveInteger
/shiporder/item/title   xs:string
/shiporder/orderid      xs:string
/shiporder/orderperson  xs:string
/shiporder/shipto       null
/shiporder/shipto/address       xs:string
/shiporder/shipto/city  xs:string
/shiporder/shipto/country       xs:string
/shiporder/shipto/name  xs:string

And if we only want to print the "item" element:

java -jar xsd_elpath.jar shiporder.xsd item

Output:

/item   null
/item/note      xs:string
/item/price     xs:decimal
/item/quantity  xs:positiveInteger
/item/title     xs:string

xsd_elpath's People

Contributors

joseerodrigues avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.