Changeset 391 for python/trunk/Doc/library/xml.dom.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/xml.dom.rst
r2 r391 80 80 The W3C recommendation for the DOM supported by :mod:`xml.dom.minidom`. 81 81 82 `Python Language Mapping Specification <http://www.omg.org/ docs/formal/02-11-05.pdf>`_82 `Python Language Mapping Specification <http://www.omg.org/spec/PYTH/1.2/PDF>`_ 83 83 This specifies the mapping from OMG IDL to Python. 84 84 … … 375 375 Add a new child node to this node at the end of the list of 376 376 children, returning *newChild*. If the node was already in 377 inthe tree, it is removed first.377 the tree, it is removed first. 378 378 379 379 … … 442 442 In addition, the Python DOM interface requires that some additional support is 443 443 provided to allow :class:`NodeList` objects to be used as Python sequences. All 444 :class:`NodeList` implementations must include support for :meth:`__len__` and 445 :meth:`__getitem__`; this allows iteration over the :class:`NodeList` in 444 :class:`NodeList` implementations must include support for 445 :meth:`~object.__len__` and 446 :meth:`~object.__getitem__`; this allows iteration over the :class:`NodeList` in 446 447 :keyword:`for` statements and proper support for the :func:`len` built-in 447 448 function. 448 449 449 450 If a DOM implementation supports modification of the document, the 450 :class:`NodeList` implementation must also support the :meth:`__setitem__` and451 :meth:` __delitem__` methods.451 :class:`NodeList` implementation must also support the 452 :meth:`~object.__setitem__` and :meth:`~object.__delitem__` methods. 452 453 453 454 … … 706 707 .. attribute:: Attr.name 707 708 708 The attribute name. In a namespace-using document it may have colons in it. 709 The attribute name. 710 In a namespace-using document it may include a colon. 709 711 710 712 711 713 .. attribute:: Attr.localName 712 714 713 The part of the name following the colon if there is one, else the entire name. 715 The part of the name following the colon if there is one, else the 716 entire name. 714 717 This is a read-only attribute. 715 718 … … 717 720 .. attribute:: Attr.prefix 718 721 719 The part of the name preceding the colon if there is one, else the empty string. 722 The part of the name preceding the colon if there is one, else the 723 empty string. 724 725 726 .. attribute:: Attr.value 727 728 The text value of the attribute. This is a synonym for the 729 :attr:`nodeValue` attribute. 720 730 721 731
Note:
See TracChangeset
for help on using the changeset viewer.