Boris (et al.)
It would be extremely useful! The use case I have in mind is to
have/build a tool that is working essentially as an xml editor. That is,
the objective is to build -interactively- an instance of an xml-document
that is compliant with a certain given schema. A bare XML editor, like
e.g. the Altova XML editor does offer this functionality, but it is
unsuited (because not open, not commercially available in the form
needed, and restricted to a windows platform) to take on board in our
application. In fact, I am not even thinking of a tool that should
handle arbitrary schemas.
In my branch -simulation of subsurface fluid flow- this situation is
typical. There exists many (industry-standard) xsd-schema;s to describe
the various aspects that go into such a physical simulation model (e.g.
fluid composition, geometry, ...). (An example from the oil industry
can be found here: http://www.energistics.org/witsml-current-stable-version)
But what is offered to a user is not an empty xml-template that the user
has to complete in. Dedicated tools provide the means to enter the
simulation data. It would be powerful if these tools could make use of
the possibility to instantly check the validity of the data entered, or
better, if they could offer the functionality based on the xsd schema.
In other words, a plea to reconsider the implementation!
Kind Regads,
Bertwim
On 07/30/2010 05:07 PM, Boris Kolpackov wrote:
Hi Vladimir,
Vladimir Loubenski<[email protected]> writes:
My understanding that single way to validate data (Validation against
XML schema) in a DOM tree is to create the DOM document, write it back
as XML and re-parse it with validation turned on. Are there plans to
support validation direct from the DOM tree?
No, there are no plans to support this at the moment. It is also
questionable how useful this feature will be since it is not clear
what one can do when a validation error has been detected. There
are some errors that will be hard/impossible to fix programmatically
(say, pattern validation error). For a more detailed discussion of
this topic, see the following post:
http://www.codesynthesis.com/pipermail/xsd-users/2008-January/001443.html
Boris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]