You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Thomas Kellerer <sh...@gmx.net> on 2019/02/07 12:24:06 UTC
Re: Can't get XML Schema registration to work
So no one is using the XML editor with XSDs outside the XML file's directory?
Thomas Kellerer schrieb am 31.01.2019 um 09:58:
> Hello,
>
> I am using NetBeans 10.0
>
> I am developing extensions for Liquibase in my project.
> So I have an additional XSD that defines the extension tags.
>
> My Liquibase changelogs (using my extensions) look like this:
>
> <databaseChangeLog
> xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
> xmlns:my="http://www.some-domain.com/my/lb"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
> http://www.some-domain.com/my/lb my.xsd">
>
> ....
>
> </databaseChangeLog>
>
>
> The "http://www.some-domain.com/my/lb my.xsd" part is the where my extensions are defined.
>
> However, when editing those XML files I can't get NetBeans to validate the XML because it does not find "my.xsd" as it is located in a different directory than the XML file itself.
>
> So I tried to add the XSD through "Tools -> DTDs and XML Schemas"
>
> I selected the "User Catalog" and added a local XSD.
> I tried specifying "my.xsd" as the "System ID" as well as "http://www.some-domain.com/my/lb" in the dialog that pops up, but neither solution worked.
>
> When I validate my XML file (through the two "down arrows" in the editor - Alt- Shift - F9) I get the following errors:
>
>> schema_reference.4: Failed to read schema document 'my.xsd', because
>> 1) could not find the document; 2) the document could not be read; 3)
>> the root element of the document is not <xsd:schema>. [11]
> As soon as I copy the my.xsd into the same folder as my XML file, the validation works.
>
> What am I missing here?
>
>
> Thanks
> Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't get XML Schema registration to work
Posted by Peter Nabbefeld <pe...@gmx.de>.
Hi Thomas,
just as a better defined starting point (as You obviously cannot make
Your files publicly available), could You probably try this schema?
<?xml version="1.0"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<xs:schema version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:test="http://localhost/test.xsd"
elementFormDefault="qualified"
targetNamespace="http://localhost/test.xsd"
>
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="test" type="xs:string"/>
</xs:sequence>
<xs:attribute name="test.attribute" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
I've created an XML file from it in a different package and I can
validate the XML file without any problems.
BTW, I've used an Ant based project type - which one do You use?
Kind regards
Peter
Am 11.02.19 um 12:04 schrieb Thomas Kellerer:
> Well, I _am_ trying to use NetBeans' "DTDs and XML Schema" feature, but for some reason NetBeans doesn't find the XSD, even if I specify the correct local filename.
>
> Strangely enough, "Open in Editor" works from with that dialog, but when trying to validate the XML inside the editor, NetBeans doesn't find the XSD file.
>
> Stefan Winter schrieb am 08.02.2019 um 18:12:
>> I guess either you put a correct local path to the my.xsd file into the schemaLocation, or you invent a URL and use Netbeans “DTS’s and XML Schema” feature.
>>
>> A local path can also include relative folder hierarchies.
>> E.g. http://www.some-domain.com/my/lb ../../../xsd/my.xsd
>>
>>
>>
>>> On 08.02.2019, at 07:30, Thomas Kellerer <shammat@gmx.net <ma...@gmx.net>> wrote:
>>>
>>> Correct. The liquibase XSD is accessed through the URL, my own XSD is local (and not in the same directory where the XML is located).
>>>
>>> Thomas
>>>
>>>
>>> Emilian Bold schrieb am 07.02.2019 um 20:58:
>>>> I think Thomas is using a mixed mode? Some schemas are remote but my.xsd is local?
>>>>
>>>> --emi
>>>>
>>>>
>>>> On Thu, Feb 7, 2019 at 9:46 PM Stefan Winter <winter.stefan@gmail.com <ma...@gmail.com> <ma...@gmail.com>> wrote:
>>>>
>>>> Hi Thomas,
>>>>
>>>> I just tried it on my local Netbeans 10 and it works when you make the System ID a full URL.
>>>>
>>>> So in your XML put:
>>>> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
>>>> http://www.some-domain.com/my/lb*http://www.some-domain.com <http://www.some-domain.com <http://www.some-domain.com/>>/my.xsd*”>
>>>>
>>>> then map System-ID http://www.some-domain.com/my.xsd to your local XSD file in the Tools -> DTS’s and XML Schemas -> User Catalog
>>>>
>>>> Actually I did not know that Netbeans can cache XSDs to avoid the lookup to the (often not existent) public http server.
>>>> Nice feature
>>>>
>>>> Regards
>>>> Stefan
>>>>
>>>>
>>>>> On 07.02.2019, at 13:24, Thomas Kellerer <shammat@gmx.net <ma...@gmx.net> <ma...@gmx.net>> wrote:
>>>>>
>>>>> So no one is using the XML editor with XSDs outside the XML file's directory?
>>>>>
>>>>> Thomas Kellerer schrieb am 31.01.2019 um 09:58:
>>>>>> Hello,
>>>>>>
>>>>>> I am using NetBeans 10.0
>>>>>>
>>>>>> I am developing extensions for Liquibase in my project.
>>>>>> So I have an additional XSD that defines the extension tags.
>>>>>>
>>>>>> My Liquibase changelogs (using my extensions) look like this:
>>>>>>
>>>>>> <databaseChangeLog
>>>>>> xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
>>>>>> xmlns:my="http://www.some-domain.com/my/lb"
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
>>>>>> http://www.some-domain.com/my/lb my.xsd">
>>>>>>
>>>>>> ....
>>>>>>
>>>>>> </databaseChangeLog>
>>>>>>
>>>>>>
>>>>>> The "http://www.some-domain.com/my/lb my.xsd" part is the where my extensions are defined.
>>>>>>
>>>>>> However, when editing those XML files I can't get NetBeans to validate the XML because it does not find "my.xsd" as it is located in a different directory than the XML file itself.
>>>>>>
>>>>>> So I tried to add the XSD through "Tools -> DTDs and XML Schemas"
>>>>>>
>>>>>> I selected the "User Catalog" and added a local XSD.
>>>>>> I tried specifying "my.xsd" as the "System ID" as well as "http://www.some-domain.com/my/lb" in the dialog that pops up, but neither solution worked.
>>>>>>
>>>>>> When I validate my XML file (through the two "down arrows" in the editor - Alt- Shift - F9) I get the following errors:
>>>>>>
>>>>>>> schema_reference.4: Failed to read schema document 'my.xsd', because
>>>>>>> 1) could not find the document; 2) the document could not be read; 3)
>>>>>>> the root element of the document is not <xsd:schema>. [11]
>>>>>> As soon as I copy the my.xsd into the same folder as my XML file, the validation works.
>>>>>>
>>>>>> What am I missing here?
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Thomas
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org> <ma...@netbeans.apache.org>
>>>>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org> <ma...@netbeans.apache.org>
>>>>>
>>>>> For further information about the NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org>
>>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org>
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't get XML Schema registration to work
Posted by Thomas Kellerer <sh...@gmx.net>.
Well, I _am_ trying to use NetBeans' "DTDs and XML Schema" feature, but for some reason NetBeans doesn't find the XSD, even if I specify the correct local filename.
Strangely enough, "Open in Editor" works from with that dialog, but when trying to validate the XML inside the editor, NetBeans doesn't find the XSD file.
Stefan Winter schrieb am 08.02.2019 um 18:12:
> I guess either you put a correct local path to the my.xsd file into the schemaLocation, or you invent a URL and use Netbeans “DTS’s and XML Schema” feature.
>
> A local path can also include relative folder hierarchies.
> E.g. http://www.some-domain.com/my/lb ../../../xsd/my.xsd
>
>
>
>> On 08.02.2019, at 07:30, Thomas Kellerer <shammat@gmx.net <ma...@gmx.net>> wrote:
>>
>> Correct. The liquibase XSD is accessed through the URL, my own XSD is local (and not in the same directory where the XML is located).
>>
>> Thomas
>>
>>
>> Emilian Bold schrieb am 07.02.2019 um 20:58:
>>> I think Thomas is using a mixed mode? Some schemas are remote but my.xsd is local?
>>>
>>> --emi
>>>
>>>
>>> On Thu, Feb 7, 2019 at 9:46 PM Stefan Winter <winter.stefan@gmail.com <ma...@gmail.com> <ma...@gmail.com>> wrote:
>>>
>>> Hi Thomas,
>>>
>>> I just tried it on my local Netbeans 10 and it works when you make the System ID a full URL.
>>>
>>> So in your XML put:
>>> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
>>> http://www.some-domain.com/my/lb*http://www.some-domain.com <http://www.some-domain.com <http://www.some-domain.com/>>/my.xsd*”>
>>>
>>> then map System-ID http://www.some-domain.com/my.xsd to your local XSD file in the Tools -> DTS’s and XML Schemas -> User Catalog
>>>
>>> Actually I did not know that Netbeans can cache XSDs to avoid the lookup to the (often not existent) public http server.
>>> Nice feature
>>>
>>> Regards
>>> Stefan
>>>
>>>
>>>> On 07.02.2019, at 13:24, Thomas Kellerer <shammat@gmx.net <ma...@gmx.net> <ma...@gmx.net>> wrote:
>>>>
>>>> So no one is using the XML editor with XSDs outside the XML file's directory?
>>>>
>>>> Thomas Kellerer schrieb am 31.01.2019 um 09:58:
>>>>> Hello,
>>>>>
>>>>> I am using NetBeans 10.0
>>>>>
>>>>> I am developing extensions for Liquibase in my project.
>>>>> So I have an additional XSD that defines the extension tags.
>>>>>
>>>>> My Liquibase changelogs (using my extensions) look like this:
>>>>>
>>>>> <databaseChangeLog
>>>>> xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
>>>>> xmlns:my="http://www.some-domain.com/my/lb"
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
>>>>> http://www.some-domain.com/my/lb my.xsd">
>>>>>
>>>>> ....
>>>>>
>>>>> </databaseChangeLog>
>>>>>
>>>>>
>>>>> The "http://www.some-domain.com/my/lb my.xsd" part is the where my extensions are defined.
>>>>>
>>>>> However, when editing those XML files I can't get NetBeans to validate the XML because it does not find "my.xsd" as it is located in a different directory than the XML file itself.
>>>>>
>>>>> So I tried to add the XSD through "Tools -> DTDs and XML Schemas"
>>>>>
>>>>> I selected the "User Catalog" and added a local XSD.
>>>>> I tried specifying "my.xsd" as the "System ID" as well as "http://www.some-domain.com/my/lb" in the dialog that pops up, but neither solution worked.
>>>>>
>>>>> When I validate my XML file (through the two "down arrows" in the editor - Alt- Shift - F9) I get the following errors:
>>>>>
>>>>>> schema_reference.4: Failed to read schema document 'my.xsd', because
>>>>>> 1) could not find the document; 2) the document could not be read; 3)
>>>>>> the root element of the document is not <xsd:schema>. [11]
>>>>> As soon as I copy the my.xsd into the same folder as my XML file, the validation works.
>>>>>
>>>>> What am I missing here?
>>>>>
>>>>>
>>>>> Thanks
>>>>> Thomas
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org> <ma...@netbeans.apache.org>
>>>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org> <ma...@netbeans.apache.org>
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org>
>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't get XML Schema registration to work
Posted by Thomas Kellerer <sh...@gmx.net>.
Correct. The liquibase XSD is accessed through the URL, my own XSD is local (and not in the same directory where the XML is located).
Thomas
Emilian Bold schrieb am 07.02.2019 um 20:58:
> I think Thomas is using a mixed mode? Some schemas are remote but my.xsd is local?
>
> --emi
>
>
> On Thu, Feb 7, 2019 at 9:46 PM Stefan Winter <winter.stefan@gmail.com <ma...@gmail.com>> wrote:
>
> Hi Thomas,
>
> I just tried it on my local Netbeans 10 and it works when you make the System ID a full URL.
>
> So in your XML put:
> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
> http://www.some-domain.com/my/lb*http://www.some-domain.com <http://www.some-domain.com>/my.xsd*”>
>
> then map System-ID http://www.some-domain.com/my.xsd to your local XSD file in the Tools -> DTS’s and XML Schemas -> User Catalog
>
> Actually I did not know that Netbeans can cache XSDs to avoid the lookup to the (often not existent) public http server.
> Nice feature
>
> Regards
> Stefan
>
>
>> On 07.02.2019, at 13:24, Thomas Kellerer <shammat@gmx.net <ma...@gmx.net>> wrote:
>>
>> So no one is using the XML editor with XSDs outside the XML file's directory?
>>
>> Thomas Kellerer schrieb am 31.01.2019 um 09:58:
>>> Hello,
>>>
>>> I am using NetBeans 10.0
>>>
>>> I am developing extensions for Liquibase in my project.
>>> So I have an additional XSD that defines the extension tags.
>>>
>>> My Liquibase changelogs (using my extensions) look like this:
>>>
>>> <databaseChangeLog
>>> xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
>>> xmlns:my="http://www.some-domain.com/my/lb"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
>>> http://www.some-domain.com/my/lb my.xsd">
>>>
>>> ....
>>>
>>> </databaseChangeLog>
>>>
>>>
>>> The "http://www.some-domain.com/my/lb my.xsd" part is the where my extensions are defined.
>>>
>>> However, when editing those XML files I can't get NetBeans to validate the XML because it does not find "my.xsd" as it is located in a different directory than the XML file itself.
>>>
>>> So I tried to add the XSD through "Tools -> DTDs and XML Schemas"
>>>
>>> I selected the "User Catalog" and added a local XSD.
>>> I tried specifying "my.xsd" as the "System ID" as well as "http://www.some-domain.com/my/lb" in the dialog that pops up, but neither solution worked.
>>>
>>> When I validate my XML file (through the two "down arrows" in the editor - Alt- Shift - F9) I get the following errors:
>>>
>>>> schema_reference.4: Failed to read schema document 'my.xsd', because
>>>> 1) could not find the document; 2) the document could not be read; 3)
>>>> the root element of the document is not <xsd:schema>. [11]
>>> As soon as I copy the my.xsd into the same folder as my XML file, the validation works.
>>>
>>> What am I missing here?
>>>
>>>
>>> Thanks
>>> Thomas
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org>
>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't get XML Schema registration to work
Posted by Emilian Bold <em...@gmail.com>.
I think Thomas is using a mixed mode? Some schemas are remote but my.xsd is
local?
--emi
On Thu, Feb 7, 2019 at 9:46 PM Stefan Winter <wi...@gmail.com>
wrote:
> Hi Thomas,
>
> I just tried it on my local Netbeans 10 and it works when you make the
> System ID a full URL.
>
> So in your XML put:
>
> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
> http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
> http://www.some-domain.com/my/lb*
> http://www.some-domain.com <http://www.some-domain.com>/my.xsd*”>
>
> then map System-ID http://www.some-domain.com/my.xsd to your local XSD
> file in the Tools -> DTS’s and XML Schemas -> User Catalog
>
> Actually I did not know that Netbeans can cache XSDs to avoid the lookup
> to the (often not existent) public http server.
> Nice feature
>
> Regards
> Stefan
>
>
> On 07.02.2019, at 13:24, Thomas Kellerer <sh...@gmx.net> wrote:
>
> So no one is using the XML editor with XSDs outside the XML file's
> directory?
>
> Thomas Kellerer schrieb am 31.01.2019 um 09:58:
>
> Hello,
>
> I am using NetBeans 10.0
>
> I am developing extensions for Liquibase in my project.
> So I have an additional XSD that defines the extension tags.
>
> My Liquibase changelogs (using my extensions) look like this:
>
> <databaseChangeLog
> xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
> xmlns:my="http://www.some-domain.com/my/lb"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
> http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
> http://www.some-domain.com/my/lb my.xsd">
>
> ....
>
> </databaseChangeLog>
>
>
> The "http://www.some-domain.com/my/lb my.xsd" part is the where my
> extensions are defined.
>
> However, when editing those XML files I can't get NetBeans to validate the
> XML because it does not find "my.xsd" as it is located in a different
> directory than the XML file itself.
>
> So I tried to add the XSD through "Tools -> DTDs and XML Schemas"
>
> I selected the "User Catalog" and added a local XSD.
> I tried specifying "my.xsd" as the "System ID" as well as "
> http://www.some-domain.com/my/lb" in the dialog that pops up, but neither
> solution worked.
>
> When I validate my XML file (through the two "down arrows" in the editor -
> Alt- Shift - F9) I get the following errors:
>
> schema_reference.4: Failed to read schema document 'my.xsd', because
> 1) could not find the document; 2) the document could not be read; 3)
> the root element of the document is not <xsd:schema>. [11]
>
> As soon as I copy the my.xsd into the same folder as my XML file, the
> validation works.
>
> What am I missing here?
>
>
> Thanks
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> <us...@netbeans.apache.org>
> For additional commands, e-mail: users-help@netbeans.apache.org
> <us...@netbeans.apache.org>
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
Re: Can't get XML Schema registration to work
Posted by Stefan Winter <wi...@gmail.com>.
Hi Thomas,
I just tried it on my local Netbeans 10 and it works when you make the System ID a full URL.
So in your XML put:
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
http://www.some-domain.com/my/lb http://www.some-domain.com/my.xsd”>
then map System-ID http://www.some-domain.com/my.xsd <http://www.some-domain.com/my.xsd> to your local XSD file in the Tools -> DTS’s and XML Schemas -> User Catalog
Actually I did not know that Netbeans can cache XSDs to avoid the lookup to the (often not existent) public http server.
Nice feature
Regards
Stefan
> On 07.02.2019, at 13:24, Thomas Kellerer <sh...@gmx.net> wrote:
>
> So no one is using the XML editor with XSDs outside the XML file's directory?
>
> Thomas Kellerer schrieb am 31.01.2019 um 09:58:
>> Hello,
>>
>> I am using NetBeans 10.0
>>
>> I am developing extensions for Liquibase in my project.
>> So I have an additional XSD that defines the extension tags.
>>
>> My Liquibase changelogs (using my extensions) look like this:
>>
>> <databaseChangeLog
>> xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
>> xmlns:my="http://www.some-domain.com/my/lb"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
>> http://www.some-domain.com/my/lb my.xsd">
>>
>> ....
>>
>> </databaseChangeLog>
>>
>>
>> The "http://www.some-domain.com/my/lb my.xsd" part is the where my extensions are defined.
>>
>> However, when editing those XML files I can't get NetBeans to validate the XML because it does not find "my.xsd" as it is located in a different directory than the XML file itself.
>>
>> So I tried to add the XSD through "Tools -> DTDs and XML Schemas"
>>
>> I selected the "User Catalog" and added a local XSD.
>> I tried specifying "my.xsd" as the "System ID" as well as "http://www.some-domain.com/my/lb" in the dialog that pops up, but neither solution worked.
>>
>> When I validate my XML file (through the two "down arrows" in the editor - Alt- Shift - F9) I get the following errors:
>>
>>> schema_reference.4: Failed to read schema document 'my.xsd', because
>>> 1) could not find the document; 2) the document could not be read; 3)
>>> the root element of the document is not <xsd:schema>. [11]
>> As soon as I copy the my.xsd into the same folder as my XML file, the validation works.
>>
>> What am I missing here?
>>
>>
>> Thanks
>> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>