Pages

Friday, June 4, 2010

XSD editor in netbeans IDE 6.8

Recently I downloaded netbeans IDE from http://netbeans.org/ everything seemed to be working fine until I tried to validate my .xsd file in it.
It showed me an error “Cannot find the declaration of element 'xsd:schema'.”  even though my xsd file was valid and began with xsd tag

 

<xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema
                     targetNamespace="http://www.example.org/schema/test/v1"
                     xmlns:tns="http://www.example.org/schema/test/v1" 
                     elementFormDefault="qualified"
                     version="1.0"> 
                     <!—ommitted –> 
</xsd:schema>

 

Finally I fixed this by downloading the XSD editor plugin from as follows

1) Open "Plugins" dialog from “Tools” menu
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"

Finally I could edit XSD files and validate with Source , Schema and Design view.

6 comments:

  1. My team is out. So much for Nigeria this year. That was a quick exit. I expected that they had a good shot to do well in this years world cup. Maybe in 4 years. Maybe its time to jump on the Argentina bandwagon. Looks like Demichelis has already scored. Go Argentina. To make me feel better from that devistating loss by Nigeria, I have been listening to some funny jokes.. Here is a good one: http://www.youtube.com/watch?v=N3j7uSbccSc

    ReplyDelete
  2. I had the same problem. Even if they never implement the xsd editor again they should at least allow xsd to validate.

    ReplyDelete
  3. Oh and just for the record this works for 6.9

    http://updates.netbeans.org/netbeans/updates/6.9/uc/m1/dev/catalog.xml.gz

    ReplyDelete
  4. Well, can not install it for NB 7.0 It requres some "Plugin editor library" that is not in catalog

    ReplyDelete
  5. Okei, Let me know if there is any workaround

    ReplyDelete