Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jing

 
John Lark
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All,

Does anyone know where there is some good solid info on Jing? I need it to do some XML Validation inside of a Java App. When I go to the API page there are a bunch of libraries but no API!? Also, no one seems to have provided any decent documentation on how to use the dang thing? Also, if anyone knows any better alternatives to Jing that would be appreciated I need something that handles Relax rng.

Thanks,
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you refer to this page? Jing

If so, then sure there's documentation on how to use it. It starts like this:
That page wrote:Once you have installed a suitable Java runtime, you can run Jing by using the command:

java -jar jing.jar options schema XMLfile...
 
John Lark
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't that command referencing the command line? I was trying to do ti from within the java app... I think at this point I am actually move towards MSV. Which appears to also support Relax NG I like that its made by sun, and some of the forms I have read seem to indicate its better maintained.
 
g tsuji
Ranch Hand
Posts: 669
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These three ingredients would suffice to get validation going for relax ng schema.

[1] Add jing.jar to the classpath. That probably is what everybody would do at the first instance.

[2] Then this is crucial. Let the system knows the whereabout of the schema validating engine for the purpose.

[2.1] If the rng schema is written in compact syntax, do this.

[2.2] If the rng schema is written in xml syntax, do this instead.

[3] Instantiate the schema factory for relax ng explicitly.

With the above, it should be ready to do the validation as what we would proceed with wxsl, not much difference.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic