Resolving test cases issue by setting the namespace aware to do a schema validation
parent
4ef21f6e8b
commit
df392c68f5
|
@ -81,6 +81,8 @@ public class JBITaskUtils {
|
|||
}
|
||||
|
||||
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
|
||||
documentBuilderFactory.setNamespaceAware(true);
|
||||
|
||||
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
|
||||
InputSource is = new InputSource(new StringReader(elementString));
|
||||
return documentBuilder.parse(is);
|
||||
|
|
Loading…
Reference in New Issue