Re: Default parser configuration
| From: | Rob Richards | Date: | Tue, 30 May 2006 21:09:48 +0000 |
| Subject: | Re: Default parser configuration | ||
| References: | 1 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-586@lists.php.net to get a copy of this message | ||
I prefer not to since the user can set these.
By having these default it would allow the parser to fetch remote files to support the document.
imo, it is better to make the developer explicitly set these, in which case they at least know the parser may do this.
Rob
Jirka Kosek wrote:
Hi, currently if you create XML parser its default behaviour is to not replace entites, to not load external DTD and to not supply attribute default values. Although XML Recommendation allows very edge interpretation in which such behaviour is completely conforming, in most cases it makes sense to specify: LIBXML_NOENT|LIBXML_DTDLOAD|LIBXML_DTDATTR The majority of other XML parsers (including Java JAXP, MSXML and .NET) are also behaving like these three options were set. Are there any plans to make those settings default and make XML parser more easier to use? (I suppose that this change will not find it way into 5.x because of backward compatibility issues, but what about v6?)Jirka