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.

Bug 139950

Summary: Missing schema for editor-bookmarks
Product: editor Reporter: Jesse Glick <jglick>
Component: NavigationAssignee: issues@editor <issues>
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2008-07-14 21:43:13 UTC
The namespace is defined in BookmarksXMLHandler, yet there is no XML
schema defining its contents. You should create a schema to validate this section, and register it in
ProjectXMLCatalog/editor-bookmarks/1.xsd in your layer.
Comment 1 Vitezslav Stejskal 2008-07-16 13:17:21 UTC
Comment 2 Jesse Glick 2008-07-16 16:25:09 UTC
Looks good.

Is it correct that


(with no <line>) is valid, or would <file>s always be deleted in case the last bookmark in them is deleted?

BTW minOccurs="1" maxOccurs="1" are both unnecessary as these are the defaults.
Comment 3 Quality Engineering 2008-07-17 04:29:43 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #324 build
User: Vita Stejskal <>
Log: #139950 (fixed): adding XML schema for editor-bookmarks
Comment 4 Vitezslav Stejskal 2008-07-17 08:56:05 UTC
Good point. I checked the saving logic and there should never be the <file> element with only <url/> and no <line/>
elements. I'll update the schema. Thanks
Comment 5 Vitezslav Stejskal 2008-07-17 09:09:17 UTC
Improved schema -