It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes Jing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Jing" Watch "Jing" New topic


John Lark
Ranch Hand

Joined: Feb 08, 2010
Posts: 72
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.

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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

Joined: Feb 08, 2010
Posts: 72
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

Joined: Jan 18, 2011
Posts: 630
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.
I agree. Here's the link:
subject: Jing
It's not a secret anymore!