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.
Create a simple xml file like this, <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE XMLCatalog PUBLIC '-//DTD XMLCatalog//EN' 'null'> <XMLCatalog> <Base HRef=""/> </XMLCatalog> Press & in the HRef attribute, code completion show a list like &< ... Select one of them, press enter,the value will be put into the field, but & is missed. For example if I select amp then I will get: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE XMLCatalog PUBLIC '-//DTD XMLCatalog//EN' 'null'> <XMLCatalog> <Base HRef="amp;"/> </XMLCatalog> Excepted is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE XMLCatalog PUBLIC '-//DTD XMLCatalog//EN' 'null'> <XMLCatalog> <Base HRef="&"/> </XMLCatalog>
Created attachment 61577 [details] a possible patch
Fixed: http://hg.netbeans.org/main/rev/1ee185318351.
Hi samaresh I tried the last dev. Sames the patch is not a correct one. It only works for attributes. But in content, it will cause a redundant &. Regards Wind
One fix for both this and issue 137717. *** This issue has been marked as a duplicate of 137717 ***