[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Associate XSD schema with XML document without declaration
|
- From: martin.novak@xxxxxxxxx (Martin Novak)
- Date: Tue, 1 Sep 2009 09:36:49 +0000 (UTC)
- Newsgroups: eclipse.webtools
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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.