diff --git a/index.html b/index.html index e29deeb..b5ac513 100644 --- a/index.html +++ b/index.html @@ -37,9 +37,9 @@ h1:before{content:""}
  • Refactoring
  • Advanced Classes
  • Files -
  • XML processing -
  • HTML processing -
  • Web services +
  • XML +
  • HTML +
  • HTTP
  • Performance tuning
  • Packaging Python libraries
  • Creating graphics with the Python Imaging Library diff --git a/table-of-contents.html b/table-of-contents.html index 0a31f44..18b3833 100644 --- a/table-of-contents.html +++ b/table-of-contents.html @@ -188,12 +188,26 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
  • Handling errors (exceptions)
  • Writing to files -
  • XML Processing +
  • XML
      -
    1. ...major changes afoot... -
    2. lxml 2.2 officially supports Python 3 +
    3. Diving In +
    4. A 5-Minute Crash Course in XML +
    5. The Structure Of An Atom Feed +
    6. Parsing XML +
        +
      1. Elements Are Lists +
      2. Attributes Are Dictonaries +
      +
    7. Searching For Nodes Within An XML Document +
    8. Going Further With lxml +
        +
      1. Customizing Your XML Parser +
      2. Incremental Parsing +
      +
    9. Generating XML +
    10. Further Reading
    -
  • HTML processing +
  • HTML
    1. Diving in
    2. html5lib @@ -206,7 +220,7 @@ ul li ol{margin:0;padding:0 0 0 2.5em}
    3. Putting it all together
    4. Summary
    -
  • HTTP web services +
  • HTTP
    1. Diving in
    2. How not to fetch data over HTTP diff --git a/xml.html b/xml.html index 46690ff..a8e94ea 100644 --- a/xml.html +++ b/xml.html @@ -269,14 +269,15 @@ mark{display:inline}

      In Etree, an element acts like a list. The items of the list are the element’s children.

      ->>> root.tag
      -'{http://www.w3.org/2005/Atom}feed'
      ->>> len(root)
      -9
      ->>> for child in root:
      -...   print(child)
      -...
      -<Element {http://www.w3.org/2005/Atom}title at e2b5d0>
      +# continued from the previous example
      +>>> root.tag
      +'{http://www.w3.org/2005/Atom}feed'
      +>>> len(root)
      +9
      +>>> for child in root:
      +...   print(child)
      +... 
      +<Element {http://www.w3.org/2005/Atom}title at e2b5d0>
       <Element {http://www.w3.org/2005/Atom}subtitle at e2b4e0>
       <Element {http://www.w3.org/2005/Atom}id at e2b6c0>
       <Element {http://www.w3.org/2005/Atom}updated at e2b6f0>
      @@ -284,8 +285,7 @@ mark{display:inline}
       <Element {http://www.w3.org/2005/Atom}link at e2b4b0>
       <Element {http://www.w3.org/2005/Atom}entry at e2b720>
       <Element {http://www.w3.org/2005/Atom}entry at e2b510>
      -<Element {http://www.w3.org/2005/Atom}entry at e2b750>
      -
      +<Element {http://www.w3.org/2005/Atom}entry at e2b750>

      Attributes Are Dictonaries