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 191544

Summary: Format and process as xml files with non-xml extension
Product: xml Reporter: simpatico
Component: CodeAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description simpatico 2010-11-02 01:32:56 UTC
I'm wondering why the ide doesn't recognize as .xml files that end with .wsmode, .wswmgr (defined by NB), and .kml files for instance, but it does handle .jnlp files.

Cannot the editor assume any file whose first line starts with <?xml to be an xml file?
Comment 1 Svata Dedic 2011-11-04 14:36:13 UTC
Nice addition; recognition must be based on a magic header <?xml in most common encodings (ASCII/UTF8, UTF-16 LE+BE, with/without BOM).
Comment 2 Svata Dedic 2011-11-04 14:39:19 UTC
Changeset: 9c0ebcc2eecb
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2011-11-04 15:39
Message:   #191544: magic header recognition of XML mime type.
Issue #191544 - Format and process as xml files with non-xml extension: fixed
Comment 3 Quality Engineering 2011-11-05 16:30:55 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/9c0ebcc2eecb
User: Svata Dedic <sdedic@netbeans.org>
Log: #191544: magic header recognition of XML mime type.
Issue #191544 - Format and process as xml files with non-xml extension: fixed