Bug #4798
closed
Create parser for KAR XML specification
Added by Sean Riddle almost 15 years ago.
Updated over 14 years ago.
Description
Create a parser for the new KAR XML format, for use especially when it is returned from a metacat query.
Wrote initial implementation. I'll leave this bug open for a day or two for interested parties (especially those involved in the KAR specification) to take a look before closing.
is there a complete XSD now?
As far as I know, no. That's a good point. I'll leave this open until there's some soft of official schema to check against if that would be agreeable. This could also serve as a central bug for individual parsing problems in the interim.
this is a 2.0 bug in that it is blocking the component search bug
Just enabled the schema validation on both the component search result and the generated kar xml by kepler.
In oder to do this, we modified the following stuff:
1. Put namespace definition, schema location(using the url of the schema on our svn kepler 2 branch) to the root element of kar xml.
2. Add a prefix to root element : <kar> to <kar:kar> (The validator can handle arbitrary prefix though)
3. Made a minor change on the schema itself, such as namespace.
The uploading and searching kar file worked to me on both kepler 2 and trunk. Sean is testing it now.
Sean and Jing have verified that this is now working.
Original Bugzilla ID was 4798
Also available in: Atom
PDF