if (inputStream != null) {
try {
// Create a non-validating builder.
// Note that this builder is JRE 1.4 and Eclipse friendly
SAXBuilder builder = new VolantisSAXBuilder(false);
// we require default namespace declarations to be replaced
// with a prefix binding, the DefaultNamespaceAdapterFilter will
// do this for us.
builder.setXMLFilter(new DefaultNamespaceAdapterFilter(
MCSNamespace.LPDM.getPrefix()));
builder.setFactory(factory);
Document document = builder.build(inputStream);
odomElement = (ODOMElement) document.getRootElement();
} finally {
inputStream.close();
}
} else {