If request POST "https://fioapi.fio.cz/v1/rest/import/" ends with 400 Bad Request with content-type: text/html;charset=utf-8, then this library throws several SimpleXMLElement parse errors like Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : StartTag: invalid element name.
If request
POST "https://fioapi.fio.cz/v1/rest/import/"
ends with400 Bad Request
withcontent-type: text/html;charset=utf-8
, then this library throws severalSimpleXMLElement
parse errors likeWarning: SimpleXMLElement::__construct(): Entity: line 1: parser error : StartTag: invalid element name
.It should throw exception for invalid input.