Re: simplexml_load_file parser error with ampersands in urls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 6 Jun 2022 09:19:51 +0000, Jānis Elmeris wrote:
> Yes, an unescaped ampersand is not allowed in XML, including the
> attributes. See the exaplanation and examples here:
> https://www.w3resource.com/xml/prohibited-character-literals.php
> 
> You can also use XML validation tools to see if your sample XMLs are
> valid, e.g.: https://www.xmlvalidation.com/

Thank you. http://validator.w3.org is a good validator too.

It feels like an oversight in the specs though, that such a common url
character is forbidden. Oh well, it is what it is.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux