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.
Originally filed here: https://glassfish.dev.java.net/issues/show_bug.cgi?id=514 This is what the bug report says: It seems that s2b does not support setAttributeValue opeartion if any of two symbols are inside of attribute values - "<" and "]" Above symbols are not converted to proper xml symbol codes (like <), but replaced by "?". (meanwhile, get command does make the proper back conversions e.g "<" ===> "<") The cause is in XMLUtil.java: /** Test if character can be in attr value */ public static boolean isAttrContent(int i) { // return false for leading ACSII chars (except tab char) if (i<9) return false; if (i>9 && i<32) return false; // return false for <, ] if (i==60 || i==93) return false; // otherwise return true return true; }
I fixed that temporarily (hot fix) : http://schema2beans.netbeans.org/source/browse/schema2beans/rt/src/org/netbeans/modules/schema2beans/XMLUtil.java.diff?r1=1.12&r2=1.13