Hi,<div>I'm really new to the csw topic, so please be patient with me. Also, as far as I understand, INSPIRE discovery service is not specified well in some points, which can lead to bad result's I might get from the server I'm trying to work with.</div><div><br></div><div>The server is national INSPIRE catalogue of Czech republic running at  <a href="http://geoportal.gov.cz/php/micka/csw/index.php">http://geoportal.gov.cz/php/micka/csw/index.php</a></div><div><br></div><div>From OWSLib/csw documentation it's quite clear, how to use "AnyText" and "BoundingBox" restriction.</div><div><br></div><div>Questions:</div><div><br></div><div>1. It is not quite clear to me, how to restrict query to particular record type ("Data" or "Service"), how to specify ServiceType ('WMS' or 'view')?</div><div><br></div><div>2. When I try to restrict the query to particular organisation, seems that OWSLib is not counting with special characters ?</div><div><br></div><div>>>> aopk_query = PropertyIsEqualTo('csw:MetadataContact', 'Agentura ochrany přírody a krajiny České republiky')<br></div><div>>>> cenia.getrecords2([aopk_query])</div><div><br></div><div>I get following error:</div><div><br></div><div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/local/lib/python2.7/dist-packages/owslib/csw.py", line 341, in getrecords2</div><div>    node2.append(flt.setConstraintList(constraints))</div><div>  File "/usr/local/lib/python2.7/dist-packages/owslib/fes.py", line 143, in setConstraintList</div><div>    return self.setConstraint(constraints[0])</div><div>  File "/usr/local/lib/python2.7/dist-packages/owslib/fes.py", line 117, in setConstraint</div><div>    self._root.append(constraint.toXML())</div><div>  File "/usr/local/lib/python2.7/dist-packages/owslib/fes.py", line 264, in toXML</div><div>    etree.SubElement(node0, util.nspath_eval('ogc:Literal', namespaces)).text = self.literal</div><div>  File "lxml.etree.pyx", line 953, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:45142)</div><div>  File "apihelpers.pxi", line 684, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:20505)</div><div>  File "apihelpers.pxi", line 1393, in lxml.etree._utf8 (src/lxml/lxml.etree.c:26656)</div><div>ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters</div></div><div><br></div><div>Any hints?</div><div><br></div><div>Thank you</div><div><br></div><div>Jachym</div><div><br></div>