Skip to main content

Hi everyone,

 

I am trying to extract some features from a WFS, but it is giving me an error.

I'm reading from: https://geodata.nationaalgeoregister.nl/kadastralekaart/wfs/v4_0?service=WFS&version=2.0&request=GetCapabilities

 

And this is the filter expression I use:

 

<Filter>

<Or>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>WMV00</Literal>

</PropertyIsEqualTo>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>KMN01</Literal>

</PropertyIsEqualTo>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>ZDM01</Literal>

</PropertyIsEqualTo>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>KOO00</Literal>

</PropertyIsEqualTo>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>ASD01</Literal>

</PropertyIsEqualTo>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>WZN00</Literal>

</PropertyIsEqualTo>

<PropertyIsEqualTo>

<PropertyName>AKRKadastraleGemeenteCodeWaarde</PropertyName>

<Literal>ZDK00</Literal>

</PropertyIsEqualTo>

</Or>

</Filter>

 

The translation fails and gives me this message:

 

line: 10 column: 4855 message: '<' character cannot be used in attribute value 'previous'; use &lt; instead'

 

What can I do to solve this error and where can I even look and go to to see attribute value 'previous'? I cannot find any attribute with this value anywhere.

 

Thanks for the help folks!

It could be several things, but the contents of the error message indicates that it expects something that's URL-encoded. Perhaps try to use the TextEncoder to URL-encode the filter text first.


Reply