Validating xml file against xsd

Be fore warned though, it is a heavy weight solution.

But then again, validating XML against XSD files is a rather heavy weight problem.

The drawback: the validation capability is not in the free version, so I had to use the 30 day trial.

validating xml file against xsd-44validating xml file against xsd-60validating xml file against xsd-67

I ended up using Liquid XML Studio 2008 (v6) which was much easier to use and more immediately familiar (the UI is very similar to Visual Basic 2008 Express, which I use frequently).For example:" is probably a network location, so it'll by default go out and hit the network with each and every validation, not always optimal.Here's an example that validates an XML file against any XSD's it references (even if it has to pull them from the network): You can avoid pulling referenced XSD's from the network, even though the xml files reference url's, by specifying the xsd manually (see some other answers here) or by using an "XML catalog" style resolver.Spring apparently also can intercept the URL requests to serve local files for validations.Or you can set your own via set Resource Resolver, ex: Source xml File = new Stream Source(xml File Location); Schema Factory schema Factory = Schema Factory Instance(XMLConstants.

Leave a Reply