summaryrefslogtreecommitdiffstats
path: root/Doc/library/xml.etree.elementtree.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46879: Fix incorrect sphinx object names in doc (GH-31615) (GH-92975)Miss Islington (bot)2022-05-191-0/+2
| | | | | | (cherry picked from commit 2cdd57f119e3b85f1bfd28c7ff040e0d9bcaf115) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Martin Fischer <martin@push-f.com>
* [3.10] bpo-43504: Remove effbot urls (GH-26308) (#92161)Thaddeus14992022-05-021-7/+0
| | | | | | * [3.10] Remove effbot urls (GH-26308). (cherry picked from commit e9f66aedf44ccc3be27975cfb070a44ce6a6bd13) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-40624: Add support for the XPath != operator in xml.etree (GH-22147)Ammar Askar2020-11-091-0/+18
|
* bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids ↵scoder2020-10-041-0/+6
| | | | modifying an XML tree while iterating over it. (GH-22464)
* bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." ↵Serhiy Storchaka2020-06-101-0/+2
| | | | | | | (GH-20117) * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)" This reverts commit b33e52511a59c6da7132c226b7f7489b092a33eb.
* bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438)Shantanu2020-06-081-2/+11
| | | | Looks like the merging of bpo-33187 and bpo-20928 was racy, resulting in this change going undocumented.
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-121-2/+2
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* bpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861)Anjali Bansal2019-09-111-0/+89
|
* bpo-36543: Remove old-deprecated ElementTree features. (GH-12707)Serhiy Storchaka2019-09-011-18/+0
| | | | | Remove methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() and the xml.etree.cElementTree module.
* bpo-14465: Add an indent() function to xml.etree.ElementTree to pretty-print ↵Stefan Behnel2019-08-231-0/+12
| | | | XML trees (GH-15200)
* bpo-34160: explain how to deal with attribute order in ElementTree (GH-14867)Stefan Behnel2019-07-241-2/+40
| | | | | | | * Fix the formatting in the documentation of the tostring() functions. * bpo-34160: Document that the tostring() and tostringlist() functions also preserve the attribute order now. * bpo-34160: Add an explanation of how users should deal with the attribute order.
* bpo-28238: Implement "{*}tag" and "{ns}*" wildcard tag selection support for ↵Stefan Behnel2019-05-031-2/+15
| | | | ElementPath, and extend the surrounding tests and docs. (GH-12997)
* bpo-13611: C14N 2.0 implementation for ElementTree (GH-12966)Stefan Behnel2019-05-011-0/+60
| | | | | | | * Implement C14N 2.0 as a new canonicalize() function in ElementTree. Missing features: - prefix renaming in XPath expressions (tag and attribute text is supported) - preservation of original prefixes given redundant namespace declarations
* bpo-36676: Namespace prefix aware parsing support for the ET.XMLParser ↵Stefan Behnel2019-05-011-2/+20
| | | | | target (GH-12885) * bpo-36676: Implement namespace prefix aware parsing support for the XMLParser target in ElementTree.
* bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ↵Stefan Behnel2019-05-011-12/+53
| | | | | | | | ElementTree. (#12883) * bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ElementTree. * bpo-36673: Rewrite the comment/PI factory handling for the TreeBuilder in "_elementtree" to make it use the same factories as the ElementTree module, and to make it explicit when the comments/PIs are inserted into the tree and when they are not (which is the default).
* bpo-30485: Change the prefix for defining the default namespace in ↵Stefan Behnel2019-04-181-3/+3
| | | | ElementPath from None to '' since there is existing code that uses that and it's more convenient to have an all-string-keys dict (e.g. when sorting items etc.). (#12860)
* bpo-30485: support a default prefix mapping in ElementPath by passing None ↵Stefan Behnel2019-04-141-3/+6
| | | | as prefix (#1823)
* bpo-36227: ElementTree.tostring() default_namespace and xml_declaration ↵Bernt Røskar Brenna2019-04-141-6/+15
| | | | | arguments (GH-12225) Add new keyword arguments "default_namespace" and "xml_declaration" to functions ET.tostring() and ET.tostringlist(), as known from ElementTree.write().
* bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)Manjusaka2019-02-221-2/+4
|
* bpo-34160: Preserve user specified order of Element attributes (GH-10163)Raymond Hettinger2018-10-281-0/+8
|
* bpo-29209: Remove old-deprecated features in ElementTree. (GH-6769)Serhiy Storchaka2018-07-241-16/+9
| | | | | Also make getchildren() and getiterator() emitting a DeprecationWarning instead of PendingDeprecationWarning.
* bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609)sblondon2018-02-101-1/+1
| | | The new link is given in a red box on the old page.
* bpo-31648: Improve ElementPath (#3835)scoder2017-09-301-0/+5
| | | | | * Allow whitespace inside of ElementPath predicates. * Add ElementPath predicate support for text comparison of the current node, like "[.='text']".
* bpo-30380: Fix Sphinx 1.6.1 warnings. (#1613)Serhiy Storchaka2017-05-161-1/+1
| | | | | | | | * Use explicit numbering for footnotes referred by explicit number. * Restore missed footnote reference in stdtypes.rst. * Fix literal strings formatting in howto/urllib2.rst. * Update susp-ignored.csv for zipapp.rst. * Fix suspicious mark up in Misc/NEWS.
* Issue #19795: Mark up True and False as literal text instead of bold.Serhiy Storchaka2016-10-191-1/+1
|
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+5
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-13/+13
| | | | Original patch by James Edwards.
* Issue #26736: Used HTTPS for external links in the documentation if possible.Serhiy Storchaka2016-05-071-4/+4
|
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation, code comments, and a debugging messages.
* Closes #26444: typo fixes.Georg Brandl2016-02-261-7/+7
|
* Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
|
* Issue #24079: Improve description of the text and tail attributes forNed Deily2015-08-181-11/+19
| | | | ElementTree Element objects. Initial patch by Martin Panter.
* Issue #23729: Improve docs for ElementTree namespace parsingRaymond Hettinger2015-03-311-8/+10
|
* Issue 23729: Document ElementTree namespace handling and fix an omission in ↵Raymond Hettinger2015-03-221-0/+68
| | | | the XPATH predicate table.
* Fixing broken links in doc, part 4: some more breaks and redirectsGeorg Brandl2014-10-291-1/+1
|
* Issue #20375: Clarify ET's parsing of comments and processing instructions.Eli Bendersky2014-04-031-0/+22
| | | | Based on patch by Nikolaus Rath.
* Minor readability improvement.Raymond Hettinger2014-03-291-1/+1
|
* Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-1/+2
|
* Fix empty strings to empty bytes objects.Serhiy Storchaka2014-02-061-1/+1
|\
| * Fix empty strings to empty bytes objects.Serhiy Storchaka2014-02-061-1/+1
| |
| * Issue #19452: Clarify the documentation of iterparse w.r.t. events argument.Eli Bendersky2013-10-311-1/+1
| | | | | | | | | | In 3.3 iterparse accepts a tuple in events (the C accelerator enforces this). This limitation was lifted in Python 3.4
* | whatsnew: XMLPullParser, plus some doc updates.R David Murray2014-01-051-9/+14
| | | | | | | | | | | | | | | | | | | | I was confused by the text saying that read_events "iterated", since it actually returns an iterator (that's what a generator does) that the caller must then iterate. So I tidied up the language. I'm not sure what the sentence "Events provided in a previous call to read_events() will not be yielded again." is trying to convey, so I didn't try to fix that. Also fixed a couple more news items.
* | shelf in with stmt, fish/csh in venv, ElementTree short_empty_elements keyword.R David Murray2013-12-261-2/+2
| | | | | | | | | | | | Also added versionadded for for fish/csh, fixed indentation of versionadded for ElementTree.write, and make the behavior of shelf as a context manager explicit in the docs.
* | merge with 3.3Georg Brandl2013-10-061-1/+1
|\ \ | |/
| * Fix: Element.text is an attribute, not a method (report by Cameron Laird on ↵Georg Brandl2013-10-061-1/+1
| | | | | | | | docs@)
* | Close #18990: remove root attribute from XMLPullParserNick Coghlan2013-09-281-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | - this was an internal implementation detail for iterparse - this has been changed to use a new private method instead - XMLPullParser.close docs are now more explicit about not returning a root element and instead direct users towards read_events - also added missing docstrings and clarified some details related to exactly *when* events are consumed from the internal queue (Initial patch by Stefan Behnel)
* | Fix XMLPullParser documentation to say "non-blocking" instead of "asynchronous".Eli Bendersky2013-08-311-17/+17
| | | | | | | | | | | | The latter is more ambiguous. Related to issue #17741
* | Issue #17741: Rename IncrementalParser and its methods.Eli Bendersky2013-08-301-90/+105
| | | | | | | | | | | | The new names are hopefully more descriptive and consistent. If you feel you don't agree with this change, *please* read issue 17741 first - there's a lot of discussion in there.
* | Issue #18760: Improved cross-references in the xml package.Serhiy Storchaka2013-08-291-2/+3
|\ \ | |/
| * Issue #18760: Improved cross-references in the xml package.Serhiy Storchaka2013-08-291-2/+3
| |