xsd validation
Hi everyone!
I have started using base-x recently and i have a question that it may be naive, but i can't find a solution. In the last version of the db you can use xslt transformation and i have been trying to do the same with xsd validation.
I mean, validate xml documents through a xsd validator using Xquery... I have tried for a while but i was not able to find a solution to this problem, even using java utilities.
Is there a possible way to validate xml through xsd in base-x?
Sorry for my really bad english and congratulations for yours really well done db!!
Best wishes,
Alberto
Ciao Alberto,
glad you have found BaseX useful, don't worry about your English, I'm sure my Italian is sure worse :)!
Regarding XSD validation, we do not offer a direct integration of validators inside BaseX. This means for the moment you really have to rely on external tools handling that job. Maybe you could elaborate a little more on the way you use BaseX, so the list might provide you with some pointers on where to plug the validator in.
Or even better: I don't know how confident you feel in Java, but as contributions are always welcome you might have a look at [1,2] and try to build your own set of functions.
I hope this helps, feel free to ask for more.
Kind regards
Michael
[1] https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/query/func/FNXslt.java [2] https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/query/func/Function.java
Quoted text · planetcomolli · 20 lines
Am 05.08.2011 um 22:43 schrieb planetcomolli at tin.it: > Hi everyone! > > I have started using base-x recently and i have a question that it may be naive, but i can't find a solution. > In the last version of the db you can use xslt transformation and i have been trying to do the same with xsd validation. > > I mean, validate xml documents through a xsd validator using Xquery... > I have tried for a while but i was not able to find a solution to this problem, even using java utilities. > > Is there a possible way to validate xml through xsd in base-x? > > Sorry for my really bad english and congratulations for yours really well done db!! > > Best wishes, > > Alberto > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 6.7. BaseX may have changed since: please check the current documentation.