diff --git a/xml.html b/xml.html index 1f91785..3ebc915 100755 --- a/xml.html +++ b/xml.html @@ -459,13 +459,13 @@ StopIteration <Element {http://www.w3.org/2005/Atom}entry at e2b510>, <Element {http://www.w3.org/2005/Atom}entry at e2b540>]
    -
  1. Once imported, lxml provides the same API as the built-in ElementTree libary. +
  2. Once imported, lxml provides the same API as the built-in ElementTree library.
  3. parse() function: same as ElementTree.
  4. getroot() method: also the same.
  5. findall() method: exactly the same.
-

For large XML documents, lxml is significantly faster than the built-in ElementTree libary. If you’re only using the ElementTree API and want to use the fastest available implementation, you can try to import lxml and fall back to the built-in ElementTree. +

For large XML documents, lxml is significantly faster than the built-in ElementTree library. If you’re only using the ElementTree API and want to use the fastest available implementation, you can try to import lxml and fall back to the built-in ElementTree.

try:
     from lxml import etree