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.
[#20070301-1027, jdk1.5.0] to reproduce: ------------- 1) set the encoding of struts-config.xml to UTF-16 2) save it ERROR: 'Invalid XML file. There were errors found while validating XML document. Save anyway? ' dialog appears. But the file is valid. faces-config.xml does the same.
Works fine for me in the 071017 build even when I added some Czech characters to the file. Please reopen with more details.
to reproduce: 1) change 1st line of the file to: <?xml version='1.0' encoding='UTF-16' ?> ERROR: 'Invalid XML file. There were errors found while validating XML document. Save anyway? ' dialog appears.
I am guessing this is more general than just with struts since I think the xml saving and parsing is done by common code that calls same xml processor ? if so, please let me know and can file a more general issue. I think now the encoding of the xml file is used vs the encoding of the project, that is, the encoding in the file takes precendence; whether that is realted to this I don't know. ken.frank@sun.com
Sorry, my fault, I had tried to evaluated on JDK 1.6, where it works fine. But I can reproduce with JDK 1.5. This doesn't seem to be reproducible for a "plain" XML file. The file is saved fine in UTF-16 LE (well, at least Czech characters are saved just fine).
moving opened issues from TM <= 6.1 to TM=Dev
.
NetBeans.org Migration: changing resolution from LATER to WONTFIX