* <code>DocumentBuilder</code> object arises
*/
static public DocumentBuilder getDocumentBuilder(String messageName,
String system) throws XException
{
DocumentBuilder docBuilder;
if (messageName == null)
{
throw new XException(Constants.LOCATION_INTERN,
Constants.LAYER_COREBASE, Constants.PACKAGE_COREBASE_XML,
"2");
}
try
// to cast to XException
{
DocumentBuilderFactory factory = DocumentBuilderFactory
.newInstance();
factory
.setIgnoringComments(getIgnoringComments(messageName,
system));
factory
.setIgnoringElementContentWhitespace(getIgnoringElementContentWhitespace(
messageName, system));
factory.setValidating(getValidating(messageName, system));
factory.setNamespaceAware(getNamespaceAware(messageName, system));
docBuilder = factory.newDocumentBuilder();
docBuilder.setErrorHandler(new XParserErrorHandler());
} // try
catch (ParserConfigurationException e)
{
throw new XException(Constants.LOCATION_INTERN,
Constants.LAYER_COREBASE, Constants.PACKAGE_COREBASE_XML,