[issue16798] DTD not checked

2012-12-29 Thread Eli Bendersky

Eli Bendersky added the comment:

I have no plans adding this feature to etree.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16798] DTD not checked

2012-12-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

You should ask for usage tips on python-list or other forums.
2.6 and 3.1 only get security fixes.
2.7 and 3.2,3.3 only get bug fixes.
This looks like a request for a new feature (assuming that it is not available 
now).
I am not familiar with the modules, but I expect that the request is out of 
scope for minidom. xml.dom.minidom is a light-weight implementation of the 
Document Object Model interface. It is intended to be simpler than the full DOM 
and also significantly smaller.

Eli, is etree open to new features and might the request be a sensible 
addition, or should this issue be closed?

--
nosy: +eli.bendersky, terry.reedy
type: behavior - enhancement
versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16798] DTD not checked

2012-12-28 Thread Javier Domingo

Javier Domingo added the comment:

I am currently using a subprocess with a call to xmllint to make it create a 
temporal file that gets created on execution for xmllint use.

I have seen about lxml, but I wondered if there is any place in the standard 
python to put xml validation

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16798] DTD not checked

2012-12-28 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Python's standard library does not currently provide a validating XML parser, 
and none is planned, so I propose to close this as won't fix.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16798] DTD not checked

2012-12-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree. The stdlib is not intended to do everything. That is why we maintain 
an index and optional repository for third party packages. For xml processing, 
lxml, in particular, is a recommended extension/replacement for advanced users. 
It includes an etree interface, to make migration from etree as easy as 
possible.

Javier, if you disagree, you could post to the python-ideas list. But I 
strongly suspect you would get about the same answer, that there is no point to 
duplicating existing external packages, and no desire to incorporate any more 
external packages, at least not for xml.

--
resolution:  - rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16798] DTD not checked

2012-12-27 Thread Javier Domingo

New submission from Javier Domingo:

Hi,

I am trying to find any tip on how to use minidom or etree xml implementations 
to check the xml syntax.

I just found that the only way to check xml syntax throught dtds is using lxml.

Would it be possible to implement this in the minidom or ElementTree default 
lib?

I have seen bug http://bugs.python.org/issue2124 that speaks about the dtds 
fetch, but didn't see any place where it speaks about them being checked.

--
components: XML
messages: 178353
nosy: txomon
priority: normal
severity: normal
status: open
title: DTD not checked
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com