From 0ff17538de78d85a7b64b62b73c916654710e30d Mon Sep 17 00:00:00 2001 From: Keshav Nangare Date: Thu, 14 May 2020 20:48:45 +0530 Subject: [PATCH] Reverted changes made in issue#46. --- .../opengis/cite/iso19136/general/GeneralSchemaTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/opengis/cite/iso19136/general/GeneralSchemaTests.java b/src/main/java/org/opengis/cite/iso19136/general/GeneralSchemaTests.java index 3c303cb..3f5ed47 100644 --- a/src/main/java/org/opengis/cite/iso19136/general/GeneralSchemaTests.java +++ b/src/main/java/org/opengis/cite/iso19136/general/GeneralSchemaTests.java @@ -178,8 +178,8 @@ AppSchemaInfo getSchemaInfo() { /** * Determines the target namespace of a GML application schema, which is * assumed to be the first schema found to have a target namespace name that - * is not referring to http://www.opengis.net/gml/3.2. - * If a URI cannot be dereferenced it is skipped. + * is not in the opengis.net domain. If a URI cannot be + * dereferenced it is skipped. * * @param schemaLocations * A {@literal Set} of schema references. @@ -199,7 +199,7 @@ URI getApplicationNamespaceName(Set schemaLocations) { Attribute targetNS = docElem.getAttributeByName(new QName( "targetNamespace")); if (null != targetNS - && !targetNS.getValue().contains("http://www.opengis.net/gml/3.2") && !targetNS.getValue().contains("http://www.opengis.net/wfs/2.0")) { + && !targetNS.getValue().contains("opengis.net")) { tns = targetNS.getValue(); break; }