Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » Programmatic XML Validation(Programmatic validation of an XML document)
Programmatic XML Validation [message #1783449] Tue, 13 March 2018 09:41 Go to next message
Jochen Wiedmann is currently offline Jochen WiedmannFriend
Messages: 30
Registered: July 2009
Member
Hi,

in a plugin, I have a case, where the syntactic validation via XSD is almost meaningless. I am using the extension point

org.eclipse.wst.xml.core.catalogContributions

but my users aren't happy with the results, because semantic validation is missing.

So, I wonder, whether it is possible to have some programmatic validation. For example, the above extension point might very well have an additional child element

    <class
        name="SOME_TARGET_NAMESPACE
        implementation="some.implementation.of.whatever.Interface"/>


Thanks,

Jochen
Re: Programmatic XML Validation [message #1790039 is a reply to message #1783449] Sun, 03 June 2018 21:10 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3298
Registered: July 2009
Senior Member

Syntactic validation, by which I think you mean well-formedness, does not require a XSD. Only actual validation does, and that's limited to what a DTD or schema can specify. It sounds like you need to write your own validator for the Validation Framework, and make your particular XML files their own content type much like Ant Buildfiles are their own type.

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Editing XML based on XSD 1.1
Next Topic:Where do I find the Web Page Editor option?
Goto Forum:
  


Current Time: Thu Nov 15 08:45:51 GMT 2018

Powered by FUDForum. Page generated in 0.01890 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top