Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Associate XSD schema with XML document without declaration
Associate XSD schema with XML document without declaration [message #483347] Tue, 01 September 2009 09:36 Go to next message
Martin Novak is currently offline Martin NovakFriend
Messages: 4
Registered: July 2009
Junior Member
It is possible associate XSD schema to some XML document in runtime
without declaration it in this document?

e.g. this two code are equivalent :

<?xml version="1.0" encoding="utf-8" ?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="schema.xsd">
<someelement/>
<root>


<?xml version="1.0" encoding="utf-8" ?>
<root>
<someelement/>
<root>


I can override ResolverExtension to get file in my location but I have to
write declaration in XML file.

Thanks.Associate XSD schema with XML document without declaration.
Re: Associate XSD schema with XML document without declaration [message #484258 is a reply to message #483347] Fri, 04 September 2009 20:50 Go to previous message
David Carver is currently offline David CarverFriend
Messages: 174
Registered: July 2009
Senior Member
Well you can use your own XML content describer and contribute to the content extension point. Or if you have an XML schema that defines a target namespace, you can include a default namespace in the xml document, and then use the WTP XML catalog to define the schema to use for that particular namespace.
Previous Topic:How to open URL contents in editor.
Next Topic:WTP 3.1: Problems with contextual launch & deploy from a JSP
Goto Forum:
  


Current Time: Fri Apr 26 19:35:16 GMT 2024

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

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

Back to the top