| Author |
Jing
|
John Lark
Ranch Hand
Joined: Feb 08, 2010
Posts: 67
|
|
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
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
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: 67
|
|
|
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: 357
|
|
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.
|
 |
 |
|
|
subject: Jing
|
|
|