Helo Martin,

Thanks for your suggestion. As you say, it's not easy, and for now I
would like to keep the number of dependancies as low as possible. This
means that I'l continue looking for alternatives for a while. I'll
keep you suggestion in mind though.

Good luck with euromath,
Jos

On Sat, 20 Nov 2004 12:41:20 +0100, Martin Vysny <[EMAIL PROTECTED]> wrote:
> Jos van den Oever wrote:
> 
> 
> 
> >Hello all,
> >
> >Is it possible to validate only parts of an XML document with Xerces? This
> >would be useful in Web Services were data typing is done by specifying XML
> >Schema single types or elements.
> >
> >Cheers, Jos
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> Hello,
>   I think I have a solution for you, but it's not an easy one. I have
> built a multiple-namespace validator based on MSV. It is very strongly
> integrated into my XML editor and serves as a validator and for
> auto-completion and XML modification hinting. This means that you must
> use my routines to load an XML, you must use ~5mb of jar files and write
> a configuration file with the locations of your schema files. Main
> disadvantage is that you *need* Java _5.0_ to use the validator. If you
> are still interested, you may take a look at
> http://euromath2.sourceforge.net.
>   To help you start, here is a sample code how to load and validate
> whole document:
> 
>         EuromathConfig.setPluginRoot();
>         EuromathConfig.initInstance();
>         XMLAccess xmlAccess = new
> DocumentLoader().loadDocument("file:testfiles/mml/mo_ex.mml");
>         xmlAccess.loadGlobalSchemas();
>         // performs full validation
>         xmlAccess.validate();
>         // validates only given element
>         EuromathSchemaProvider.getInstance().validate(element,
> xmlAccess.getSchema().getReferences());
> 
> If you have any further questions, please write anytime. I'm looking
> forward to any feedback.
> Sincerely,
> Martin Vysny
> 
> ---------------------------------------------------------------------
> 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to