NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8?

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Jonathan Lister
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 1:25 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

In netBeans 6.7 I could add an xsd file to a project by New | XML | XML
Schema.
In NB 6.8, XML Schema is not present in the list of options under the XML
category, how can I re-enable it?

Similarly, in 6.7 I could open an xsd in the editor, make some changes and
then right-click and choose Validate XML. In 6.8 I get the error below -
can't find xsd:schema

any suggestions please?


Jonathan Lister wrote:
Quote:

Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"
xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]



--
View this message in context: http://old.nabble.com/Where-is-the-Xsd-editor-and-xml-validation-problem-in-NB-6.8-tp26779831p27144833.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Sergey Lunegov
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 1:44 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

Hi Jonathan,

XML schema modules are placed on NB Update Center now.
So you should download them (you can do it via "Tools->Plugin" menu)

Thanks,
Sergey


Jonathan Lister wrote:
Quote:
In netBeans 6.7 I could add an xsd file to a project by New | XML | XML
Schema.
In NB 6.8, XML Schema is not present in the list of options under the XML
category, how can I re-enable it?

Similarly, in 6.7 I could open an xsd in the editor, make some changes and
then right-click and choose Validate XML. In 6.8 I get the error below -
can't find xsd:schema

any suggestions please?


Jonathan Lister wrote:

Quote:
Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"
xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]




Back to top
Jonathan Lister
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 2:11 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

Hi Sergey,
I had previously looked in plugins, but can't find any module that contains
XSD support. What is the modules full name?

I already have installed:
Base IDE
Java Web and EE
Java Se

Under settings I have activated all four upodate centres (netbeans, nb beta,
plugin portal & 3'rd party)


Sergey Lunegov wrote:
Quote:

Hi Jonathan,

XML schema modules are placed on NB Update Center now.
So you should download them (you can do it via "Tools->Plugin" menu)

Thanks,
Sergey


Jonathan Lister wrote:
Quote:
In netBeans 6.7 I could add an xsd file to a project by New | XML | XML
Schema.
In NB 6.8, XML Schema is not present in the list of options under the XML
category, how can I re-enable it?

Similarly, in 6.7 I could open an xsd in the editor, make some changes
and
then right-click and choose Validate XML. In 6.8 I get the error below -
can't find xsd:schema

any suggestions please?


Jonathan Lister wrote:

Quote:
Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"

xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]









--
View this message in context: http://old.nabble.com/Where-is-the-Xsd-editor-and-xml-validation-problem-in-NB-6.8-tp26779831p27145548.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Sergey Lunegov
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 3:53 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

Jonathan,

looks like xml schema editor was deleted from NB update centers (both
stable and beta)

Thanks,
Sergey


Jonathan Lister wrote:
Quote:
Hi Sergey,
I had previously looked in plugins, but can't find any module that contains
XSD support. What is the modules full name?

I already have installed:
Base IDE
Java Web and EE
Java Se

Under settings I have activated all four upodate centres (netbeans, nb beta,
plugin portal & 3'rd party)


Sergey Lunegov wrote:

Quote:
Hi Jonathan,

XML schema modules are placed on NB Update Center now.
So you should download them (you can do it via "Tools->Plugin" menu)

Thanks,
Sergey


Jonathan Lister wrote:

Quote:
In netBeans 6.7 I could add an xsd file to a project by New | XML | XML
Schema.
In NB 6.8, XML Schema is not present in the list of options under the XML
category, how can I re-enable it?

Similarly, in 6.7 I could open an xsd in the editor, make some changes
and
then right-click and choose Validate XML. In 6.8 I get the error below -
can't find xsd:schema

any suggestions please?


Jonathan Lister wrote:


Quote:
Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"

xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]









Back to top
Jonathan Lister
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 4:23 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

oh,
do you think they will come back anytime soon
or is my only option to use NB 6.7 ?


Sergey Lunegov wrote:
Quote:

Jonathan,

looks like xml schema editor was deleted from NB update centers (both
stable and beta)

Thanks,
Sergey


Jonathan Lister wrote:
Quote:
Hi Sergey,
I had previously looked in plugins, but can't find any module that
contains
XSD support. What is the modules full name?

I already have installed:
Base IDE
Java Web and EE
Java Se

Under settings I have activated all four upodate centres (netbeans, nb
beta,
plugin portal & 3'rd party)


Sergey Lunegov wrote:

Quote:
Hi Jonathan,

XML schema modules are placed on NB Update Center now.
So you should download them (you can do it via "Tools->Plugin" menu)

Thanks,
Sergey


Jonathan Lister wrote:

Quote:
In netBeans 6.7 I could add an xsd file to a project by New | XML | XML
Schema.
In NB 6.8, XML Schema is not present in the list of options under the
XML
category, how can I re-enable it?

Similarly, in 6.7 I could open an xsd in the editor, make some changes
and
then right-click and choose Validate XML. In 6.8 I get the error below
-
can't find xsd:schema

any suggestions please?


Jonathan Lister wrote:


Quote:
Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says
is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"

xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]














--
View this message in context: http://old.nabble.com/Where-is-the-Xsd-editor-and-xml-validation-problem-in-NB-6.8-tp26779831p27147365.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Sergey Lunegov
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 4:58 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

I think more robust option is to use 6.7.1

Sergey


Jonathan Lister wrote:
Quote:
oh,
do you think they will come back anytime soon
or is my only option to use NB 6.7 ?


Sergey Lunegov wrote:

Quote:
Jonathan,

looks like xml schema editor was deleted from NB update centers (both
stable and beta)

Thanks,
Sergey


Jonathan Lister wrote:

Quote:
Hi Sergey,
I had previously looked in plugins, but can't find any module that
contains
XSD support. What is the modules full name?

I already have installed:
Base IDE
Java Web and EE
Java Se

Under settings I have activated all four upodate centres (netbeans, nb
beta,
plugin portal & 3'rd party)


Sergey Lunegov wrote:


Quote:
Hi Jonathan,

XML schema modules are placed on NB Update Center now.
So you should download them (you can do it via "Tools->Plugin" menu)

Thanks,
Sergey


Jonathan Lister wrote:


Quote:
In netBeans 6.7 I could add an xsd file to a project by New | XML | XML
Schema.
In NB 6.8, XML Schema is not present in the list of options under the
XML
category, how can I re-enable it?

Similarly, in 6.7 I could open an xsd in the editor, make some changes
and
then right-click and choose Validate XML. In 6.8 I get the error below
-
can't find xsd:schema

any suggestions please?


Jonathan Lister wrote:



Quote:
Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says
is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"

xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]















Back to top
bthayer



Joined: 19 Mar 2009
Posts: 12

PostPosted: Wed Jan 13, 2010 5:25 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

I am using 6.7.1 and get the same error message. I do not have a clue what could be wrong because I've copy and pasted the header from a known working xsd. Any Ideas?

XML validation started.

Checking file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ROOT/javaxml/XSD/mdif.xsd...
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [8]
XML validation finished.


Here is my xsd:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="http://dfwbthayer.tqs.com:8080/javaxml/XSD/mdif.xsd"
            xmlns:mns="http://dfwbthayer.tqs.com:8080/javaxml/XSD/mdif.xsd"
            xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
            xmlns:ts="http://dfwbthayer.tqs.com:8080/javaxml/XSD/touchstoneBinding.xsd"
            jxb:version="2.0"
            elementFormDefault="qualified">
      
    <xsd:import namespace="http://www.w3.org/2001/XMLSchema" />
    <xsd:annotation>
        <xsd:appinfo>
            <jxb:globalBindings
                collectionType="java.util.Vector"/>
        </xsd:appinfo>
    </xsd:annotation>

    <xsd:element name="MDIF" type="mns:MdifType" />
    <xsd:complexType name="MdifType" mixed="true" >
        <xsd:choice maxOccurs="unbounded">
            <xsd:element name="COMMENT" type="ts:CommentType" minOccurs="0" maxOccurs="unbounded" />
            <xsd:element name="REM" type="mns:RemType" minOccurs="0" maxOccurs="unbounded" />
            <xsd:element name="VAR" type="mns:VarType" />
            <xsd:element name="BEGIN" type="mns:BlockDataType" />
            <xsd:element name="END" type="mns:BlockDataType" />
            <xsd:sequence maxOccurs="unbounded" >
                <xsd:element name="NETWORK" type="tns:NetworkType" maxOccurs="unbounded" />
                <xsd:element name="NOISE" type="tns:NoiselineType" minOccurs="0" maxOccurs="unbounded" />
            </xsd:sequence>
        </xsd:choice>
    </xsd:complexType>
    <xsd:complexType name="BlockDataType">
        <xsd:choice >
            <xsd:element name="ACDATA" type="ts:TouchstoneType" minoccurs="0" maxoccurs="unbounded" />
            <xsd:element name="NDATA" type="ts:NoiseDataType" minoccurs="0" maxoccurs="unbounded" />
        </xsd:choice>
        <xsd:attribute name="blockname" type="xsd:string" use="optional" />
    </xsd:complexType>
    <xsd:simpleType name="RemType">
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="().*|REM.*" />
        </xsd:restriction>
    </xsd:simpleType>
</xsd:schema>




Jonathan Lister wrote:
Quote:

Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"
xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]



Code:
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Wed Jan 13, 2010 11:38 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

I had the same issue too. However, my xsd works fine without issues. Does this error prevents it from working?


From: bthayer <address-removed>
To: address-removed
Sent: Wed, January 13, 2010 11:26:12 AM
Subject: [nbj2ee] Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8?

I am using 6.7.1 and get the same error message. I do not have a clue what could be wrong because I've copy and pasted the header from a known working xsd. Any Ideas?

XML validation started.

Checking file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ROOT/javaxml/XSD/mdif.xsd...
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [8]
XML validation finished.


Here is my xsd:

Code:

<?xml version="1.0" encoding="UTF-8"?>

targetNamespace="http://dfwbthayer.tqs.com:8080/javaxml/XSD/mdif.xsd"
xmlns:mns="http://dfwbthayer.tqs.com:8080/javaxml/XSD/mdif.xsd"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:ts="http://dfwbthayer.tqs.com:8080/javaxml/XSD/touchstoneBinding.xsd"
jxb:version="2.0"
elementFormDefault="qualified">

<xsd:import namespace="http://www.w3.org/2001/XMLSchema" />
<xsd:annotation>
<xsd:appinfo>
<jxb:globalBindings
collectionType="java.util.Vector"/>
</xsd:appinfo>
</xsd:annotation>

<xsd:element name="MDIF" type="mns:MdifType" />
<xsd:complexType name="MdifType" mixed="true" >
<xsd:choice maxOccurs="unbounded">
<xsd:element name="COMMENT" type="ts:CommentType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="REM" type="mns:RemType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="VAR" type="mns:VarType" />
<xsd:element name="BEGIN" type="mns:BlockDataType" />
<xsd:element name="END" type="mns:BlockDataType" />
<xsd:sequence maxOccurs="unbounded" >
<xsd:element name="NETWORK" type="tns:NetworkType" maxOccurs="unbounded" />
<xsd:element name="NOISE" type="tns:NoiselineType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="BlockDataType">
<xsd:choice >
<xsd:element name="ACDATA" type="ts:TouchstoneType" minoccurs="0" maxoccurs="unbounded" />
<xsd:element name="NDATA" type="ts:NoiseDataType" minoccurs="0" maxoccurs="unbounded" />
</xsd:choice>
<xsd:attribute name="blockname" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:simpleType name="RemType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="().*|REM.*" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>






Jonathan Lister wrote:

Quote:

Has the xsd editor been dropped, or do I need to install an additional
plugin?

Also, the xml validator in 6.8 raises an error with xml that 6.7 says is
OK:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.mycompany.com/schema/authentication/v1"
xmlns:tns="http://www.mycompany.com/schema/authentication/v1"
elementFormDefault="qualified"
version="1.0">
<!-- ommitted -->
</xsd:schema>

error message:
cvc-elt.1: Cannot find the declaration of element 'xsd:schema'. [7]





Code:




------------------------
I've got the fever and the only cure is more cowbell.
Back to top
dbritton



Joined: 02 Jul 2009
Posts: 20

PostPosted: Thu Jan 14, 2010 12:16 am    Post subject: Solution to get xml schema editing in NB6.8 Reply with quote

netbeans 6.8 did not have xml schema editing
I found a workaround. The plugin was still here in 6.8M1 so you can get it from here.
1) Open "Plugins" dialog
2) Go to "Settings" tab
3) Add an update center:
- Name: NetBeans Dev
- URL: http://updates.netbeans.org/netbeans/updates/6.8/uc/m1/dev/catalog.xml.gz
4) Wait for catalog to be downloaded
5) Back to "Available plugins" tab
6) Intall plugin called "XML Schema and WSDL"

enjoy
Back to top
Jonathan Lister
Posted via mailing list.





PostPosted: Thu Jan 14, 2010 10:00 am    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

Excellent workaround, many thanks for sharing this.

If the NetBeans team are listening, please, please can we have the xsd
editor / validator back into the main stream? I just can't do xml without
xsd ;-)


dbritton wrote:
Quote:

netbeans 6.8 did not have xml schema editing
I found a workaround. The plugin was still here in 6.8M1 so you can get it
from here.
1) Open "Plugins" dialog
2) Go to "Settings" tab
3) Add an update center:
- Name: NetBeans Dev
- URL:
http://updates.netbeans.org/netbeans/updates/6.8/uc/m1/dev/catalog.xml.gz
4) Wait for catalog to be downloaded
5) Back to "Available plugins" tab
6) Intall plugin called "XML Schema and WSDL"

enjoy







--
View this message in context: http://old.nabble.com/Where-is-the-Xsd-editor-and-xml-validation-problem-in-NB-6.8-tp26779831p27158816.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
jbelferi



Joined: 22 Apr 2010
Posts: 4
Location: Denver, CO

PostPosted: Mon Apr 26, 2010 3:43 pm    Post subject: Re: Where is the Xsd editor in NB 6.8? how to validate xsd in 6.8? Reply with quote

I've tried this workaround, but the Update Center workaround link is no longer available (404). Not sure why WSDL/XSD support was dropped, but it would be nice to get it back.

Jonathan Lister wrote:
Excellent workaround, many thanks for sharing this.

If the NetBeans team are listening, please, please can we have the xsd
editor / validator back into the main stream? I just can't do xml without
xsd Wink


dbritton wrote:
Quote:

netbeans 6.8 did not have xml schema editing
I found a workaround. The plugin was still here in 6.8M1 so you can get it
from here.
1) Open "Plugins" dialog
2) Go to "Settings" tab
3) Add an update center:
- Name: NetBeans Dev
- URL:
http://updates.netbeans.org/netbeans/updates/6.8/uc/m1/dev/catalog.xml.gz
4) Wait for catalog to be downloaded
5) Back to "Available plugins" tab
6) Intall plugin called "XML Schema and WSDL"

enjoy







--
View this message in context: http://old.nabble.com/Where-is-the-Xsd-editor-and-xml-validation-problem-in-NB-6.8-tp26779831p27158816.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo