This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Netbeans XML Validator can't validate perfectly validate docbook version 5 xml documents. e.g.: <?xml version="1.0" encoding="utf-8"?> <article xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en"> <title>Sample article</title> <para>This is a very short article.</para> </article> when trying to validate produces: Checking ...newXMLDocument.xml... cvc-elt.1: Cannot find the declaration of element 'article'. [2] XML validation finished. Sample is taken from Docbook 5 and i even checked it with the w3c validator at http://validator.w3.org/ As a sidenote i can't create a xml file with a reference to the docbook schema -> "Please select a schema that has root elements as primary." I guess it's related so i did not created 2 separate issues yet.
Vladimir, please take a look.
The validator from jdk is used for validation of xml, can't change anything.
I realize this one is set to "resolved - wontfix" but could it be investigated any further? This document that points to the schema validates right away in Eclipse IDE for Java Developers downloaded today. A shame we cannot use NetBeans to edit DocBook 5. <?xml version="1.0" encoding="UTF-8"?> <book xmlns='http://docbook.org/ns/docbook' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd'> <info> <title>Test Book</title> </info> <chapter> <title>Only Chapter</title> <para>This is a very short book.</para> </chapter> </book> In NetBeans 7.0 Beta 2, I see the following in "Output - XML check" when attempting to validate the document. XML validation started. Checking file:/Users/.../src/main/doc/TestBook.xml... Referenced entity at "http://docbook.org/xml/5.0/xsd/docbook.xsd". Referenced entity at "http://docbook.org/xml/5.0/xsd/xlink.xsd". Referenced entity at "nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/XMLSchema.dtd". Referenced entity at "nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/datatypes.dtd". src-resolve: Cannot resolve the name 'xml:id' to a(n) 'attribute declaration' component. [6] http://docbook.org/xml/5.0/xsd/docbook.xsd s4s-elt-must-match.1: The content of 'db.common.attributes' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?)). A problem was found starting at: attribute. [6] http://docbook.org/xml/5.0/xsd/docbook.xsd XML validation finished.