diff --git a/fixtures/wfs/describefeaturetype-pigma-1-1-0-xsd.xml b/fixtures/wfs/describefeaturetype-pigma-1-1-0-xsd.xml index 5e16da6..f384863 100644 --- a/fixtures/wfs/describefeaturetype-pigma-1-1-0-xsd.xml +++ b/fixtures/wfs/describefeaturetype-pigma-1-1-0-xsd.xml @@ -4,14 +4,14 @@ - - - - - - - - + + + + + + + + diff --git a/src/wfs/featuretypeinfo.ts b/src/wfs/featuretypeinfo.ts index 8555643..4d4cfdf 100644 --- a/src/wfs/featuretypeinfo.ts +++ b/src/wfs/featuretypeinfo.ts @@ -47,7 +47,7 @@ export function parseFeatureTypeInfo( )[0]; const typeElementsEls = findChildrenElement(complexTypeEl, 'element', true); const properties = typeElementsEls - .filter((el) => getElementAttribute(el, 'type').startsWith('xsd:')) + .filter((el) => /^xsd:|^xs:/.test(getElementAttribute(el, 'type'))) .reduce( (prev, curr) => ({ ...prev,