Use real XML parsing like https://github.com/irstv/orbisgis/blob/master/orbisgis-core/src/main/java/org/orbisgis/core/layerModel/mapcatalog/RemoteMapCatalog.java#L69