Re: [PHP-XML-DEV] Default parser configuration

[email protected] (Rob Richards) Tue, 30 May 2006 17:09:48 -0400
Newsgroups php.xml.dev
Message-ID <[email protected]>
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
>