Author: scabanovich
Date: 2007-07-23 11:42:13 -0400 (Mon, 23 Jul 2007)
New Revision: 2609
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java
Log:
EXIN-86 xml validation by meta for components.xml fixed
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java 2007-07-23
15:25:04 UTC (rev 2608)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/XModelObjectLoaderUtil.java 2007-07-23
15:42:13 UTC (rev 2609)
@@ -158,6 +158,9 @@
Node n = nl.item(i);
if(n.getNodeType() == Node.ELEMENT_NODE) {
String name = n.getNodeName();
+ if(namespaceMapping != null) {
+ name = namespaceMapping.convertToDefault(name);
+ }
if(allowed.contains(name)) continue;
error = "Unallowed child " + name + " of " +
element.getNodeName() + ":0:0";
return true;
Show replies by date