File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Jing" Watch "Jing" New topic
Author

Jing

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.

Thanks,
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

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: 547
    
    3
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: http://aspose.com/file-tools
 
subject: Jing