Humburger Icon
Let's Explore, Bibiliophile
close menu
Bookswagon-24x7 online bookstore
close menu
My Account
XML Processing with Python
Zoom

XML Processing with Python

          
5
4
3
2
1

Out of Stock


About the Book
Python is the fastest, most productive tool for processing XML. This is the first book to cover XML development with Python, in-depth. XML expert Sean McGrath introduces each of Python's key features, with practical examples demonstrating exactly how to leverage Python in XML development. Install Python and its XML package; then discover the new Pyxie open source project, which provides powerful XML processing libraries for Python. Master XML processing tasks such as stripping tags and reporting on XML document structure. Learn basic Python control structures, functions, data structures, and object techniques; then process XML using regular expressions; event-driven and tree-driven techniques. XML Processing With Python also includes hands-on, practical chapters on SAX and DOM support in Python. The CD-ROM contains complete Python distributions for Windows and Linux, plus extensive source code.

Table of Contents:
1. Introduction. Purpose of This Book. The Pyxie Open Source Project. Prerequisites. How to Read This Book. A Note about Platforms. Structure of Code Samples. And Finally. 2. Installing Python. Getting a Python Distribution. Installing the Software. Testing the Python Installation. Using a Python Program File. In Conclusion. 3. Installing the XML Package. Testing the XML Package Installation. Testing the pyExpat Module. Testing SAX Support. 4. Tools of the Trade. The xmln and xmlv Parsing Utilities. Simple XML-Processing Tasks with xmln and xmlv. The GetURL Utility-A Web Resource Retriever in Python. The PYX2XML Utility: Converting PYX to XML. The C3 Utility: An XML Document Editor/Viewer in Python. In Conclusion. 5. Just Enough Python. Introduction. Basic Control Structures. Functions. Modules. Data Structures. Object Orientation. Design Principles. In Conclusion. 6. Some Important Details. Dealing with Long Lines. Using the dir Function. Working with Docstrings. Importing Modules. Executing Python Programs. Using the Special Object None. Memory Management. Copying Objects. Determining Object Identity. Handling Errors. The Dynamic Nature of Python. Named Parameters. The Pass Statement. Packages. 7. Processing XML with Regular Expressions. Command-Line Arguments. A Module Test Harness for xgrep. What If There Are No Command-Line Parameters? Adding Support for Wildcards. Parsing Command-Line Options. A Pattern-Matching Dry Run. Introducing Regular Expressions. Using Escape Sequences in Regular Expressions. Compiling Regular Expressions. Adding Regular Expressions to xgrep. xgrep in Action. Parsing XML with Regular Expressions. Cautionary Tales. Avoiding False Positive Matches. Shallow Parsing XML with Python Regular Expressions. Current Implementation of xgrep. 8. Event-driven XML Processing. Making xgrep XML-Aware. Invoking xmln from xgrep. Adding PYX Support for xgrep. Adding XML Search Features to xgrep. Using Long Option Names in getopt. Using "Bit Twiddling" to Handle the Many Options Available. The Match Printing Function. Some Examples. Generalizing the Idea of Event-Based XML Processing. A Standardized Event-Driven Processing Model. Advantages and Disadvantages of Event-Driven Processing. In Conclusion. 9. Tree-driven XML Processing. Modelling a Node. Navigating a Tree. Building xTree Structures. Building an xTree By Using PYX. A Test Harness for Pyxie. Handling Line Ends. A Syntax for Tree Processing with xgrep. Adding Support for Attributes. Some Utility Bits and Pieces. Implementing XMLGrepTree. A Standardized Tree-Driven XML Processing Model. Advantages and Disadvantages of Tree-Driven XML Processing. Some Examples. Bringing It All Together. 10. Just Enough SAX. History. The Concept of an "Interface". Overview of the SAX Specification. The HandlerBase Class. The DocumentHandler Interface. The AttributeList Interface. The ErrorHandler Interface. A SAX Inspection Application. SAX as a Source of PYX. Switching SAX Parsers. 11. Just Enough DOM. History. DOM Support in Python. The DOM Architecture. Accessing an XML File with pyDOM. Navigating a DOM Tree. Walking a DOM Tree. Accessing Attributes. Manipulating Trees. Accessing an HTML File with pyDOM. Printing the Text of an HTML Document. Changing Data Content in a DOM Tree. Creating a Tree Programmatically. Converting HTML to PYX by Using DOM. Using PYX as a DOM Data Source. 12. Pyxie: An Open Source XML- Processing Library for Python. What Is Pyxie? Design Goals. PYX Notation Processing. Event-driven Processing. Tree-driven Processing. Tree Navigation. Tree Cut-and-Paste. Node Lists. Tree Walking. Hybrid Event- or Tree-driven Processing. The Invoice Printing Problem Solved Three Ways. The Complete Source Code for the Pyxie Library. 13. xFS: Filesystem Information in XML. A Simple XML DTD for Filesystem Information. Some Python Features Used in the xFS Application. Viewing xFS Data with the C3 XML Editor/Viewer. Performing Filesystem Queries with xgrep. Source Code for xFS. 14. xMail: E-mail as XML. The rfc822 Module. A Simple DTD for E-mail. An Example of an E-mail Message in XML. Processing a Eudora Mailbox. Processing a Linux Mailbox. Processing an E-mail Message by Using the rfc822 Module. Sending E-mail by Using xMail. Source Code for the SendxMail Application. Source Code for the xMail Application. 15. xMySQL: Relational Database Harvesting with Python SAX. Installing MySQL. Testing the MySQL Installation. Installing the Python Interface to MySQL. Testing the Python Interface to MySQL. Mapping Relational Data to XML. The Python SAX Driver Interface. Implementing a SAX Driver for MySQL. A Template for SAX Drivers. The MySQL SAX Driver. Some Examples. 16. xTract: A Query-By-Example XML Retrieval System. Expressing XML Queries. The xTract.py Utility in Action. xTract Version 1 Source Code. Handling Large XML Files with xTract. Source Code for the xTract1 Utility. 17. The C3 XML Editor/Viewer. Developing wxPython Applications. A "Hello World" wxPython Application. Converting an xTree to a wxTree, and Vice Versa. Dynamic Module Loading. The Complete Source Code for C3. Appendix A: An Overview of Python for Java Programmers. Comparing the Python and Java Programming Languages. Appendix B: An Overview of Python for Perl Programmers. Index.
read more
Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist
About the Book

Python is the fastest, most productive tool for processing XML. This is the first book to cover XML development with Python, in-depth. XML expert Sean McGrath introduces each of Python's key features, with practical examples demonstrating exactly how to leverage Python in XML development. Install Python and its XML package; then discover the new Pyxie open source project, which provides powerful XML processing libraries for Python. Master XML processing tasks such as stripping tags and reporting on XML document structure. Learn basic Python control structures, functions, data structures, and object techniques; then process XML using regular expressions; event-driven and tree-driven techniques. XML Processing With Python also includes hands-on, practical chapters on SAX and DOM support in Python. The CD-ROM contains complete Python distributions for Windows and Linux, plus extensive source code.

Table of Contents:
1. Introduction. Purpose of This Book. The Pyxie Open Source Project. Prerequisites. How to Read This Book. A Note about Platforms. Structure of Code Samples. And Finally. 2. Installing Python. Getting a Python Distribution. Installing the Software. Testing the Python Installation. Using a Python Program File. In Conclusion. 3. Installing the XML Package. Testing the XML Package Installation. Testing the pyExpat Module. Testing SAX Support. 4. Tools of the Trade. The xmln and xmlv Parsing Utilities. Simple XML-Processing Tasks with xmln and xmlv. The GetURL Utility-A Web Resource Retriever in Python. The PYX2XML Utility: Converting PYX to XML. The C3 Utility: An XML Document Editor/Viewer in Python. In Conclusion. 5. Just Enough Python. Introduction. Basic Control Structures. Functions. Modules. Data Structures. Object Orientation. Design Principles. In Conclusion. 6. Some Important Details. Dealing with Long Lines. Using the dir Function. Working with Docstrings. Importing Modules. Executing Python Programs. Using the Special Object None. Memory Management. Copying Objects. Determining Object Identity. Handling Errors. The Dynamic Nature of Python. Named Parameters. The Pass Statement. Packages. 7. Processing XML with Regular Expressions. Command-Line Arguments. A Module Test Harness for xgrep. What If There Are No Command-Line Parameters? Adding Support for Wildcards. Parsing Command-Line Options. A Pattern-Matching Dry Run. Introducing Regular Expressions. Using Escape Sequences in Regular Expressions. Compiling Regular Expressions. Adding Regular Expressions to xgrep. xgrep in Action. Parsing XML with Regular Expressions. Cautionary Tales. Avoiding False Positive Matches. Shallow Parsing XML with Python Regular Expressions. Current Implementation of xgrep. 8. Event-driven XML Processing. Making xgrep XML-Aware. Invoking xmln from xgrep. Adding PYX Support for xgrep. Adding XML Search Features to xgrep. Using Long Option Names in getopt. Using "Bit Twiddling" to Handle the Many Options Available. The Match Printing Function. Some Examples. Generalizing the Idea of Event-Based XML Processing. A Standardized Event-Driven Processing Model. Advantages and Disadvantages of Event-Driven Processing. In Conclusion. 9. Tree-driven XML Processing. Modelling a Node. Navigating a Tree. Building xTree Structures. Building an xTree By Using PYX. A Test Harness for Pyxie. Handling Line Ends. A Syntax for Tree Processing with xgrep. Adding Support for Attributes. Some Utility Bits and Pieces. Implementing XMLGrepTree. A Standardized Tree-Driven XML Processing Model. Advantages and Disadvantages of Tree-Driven XML Processing. Some Examples. Bringing It All Together. 10. Just Enough SAX. History. The Concept of an "Interface". Overview of the SAX Specification. The HandlerBase Class. The DocumentHandler Interface. The AttributeList Interface. The ErrorHandler Interface. A SAX Inspection Application. SAX as a Source of PYX. Switching SAX Parsers. 11. Just Enough DOM. History. DOM Support in Python. The DOM Architecture. Accessing an XML File with pyDOM. Navigating a DOM Tree. Walking a DOM Tree. Accessing Attributes. Manipulating Trees. Accessing an HTML File with pyDOM. Printing the Text of an HTML Document. Changing Data Content in a DOM Tree. Creating a Tree Programmatically. Converting HTML to PYX by Using DOM. Using PYX as a DOM Data Source. 12. Pyxie: An Open Source XML- Processing Library for Python. What Is Pyxie? Design Goals. PYX Notation Processing. Event-driven Processing. Tree-driven Processing. Tree Navigation. Tree Cut-and-Paste. Node Lists. Tree Walking. Hybrid Event- or Tree-driven Processing. The Invoice Printing Problem Solved Three Ways. The Complete Source Code for the Pyxie Library. 13. xFS: Filesystem Information in XML. A Simple XML DTD for Filesystem Information. Some Python Features Used in the xFS Application. Viewing xFS Data with the C3 XML Editor/Viewer. Performing Filesystem Queries with xgrep. Source Code for xFS. 14. xMail: E-mail as XML. The rfc822 Module. A Simple DTD for E-mail. An Example of an E-mail Message in XML. Processing a Eudora Mailbox. Processing a Linux Mailbox. Processing an E-mail Message by Using the rfc822 Module. Sending E-mail by Using xMail. Source Code for the SendxMail Application. Source Code for the xMail Application. 15. xMySQL: Relational Database Harvesting with Python SAX. Installing MySQL. Testing the MySQL Installation. Installing the Python Interface to MySQL. Testing the Python Interface to MySQL. Mapping Relational Data to XML. The Python SAX Driver Interface. Implementing a SAX Driver for MySQL. A Template for SAX Drivers. The MySQL SAX Driver. Some Examples. 16. xTract: A Query-By-Example XML Retrieval System. Expressing XML Queries. The xTract.py Utility in Action. xTract Version 1 Source Code. Handling Large XML Files with xTract. Source Code for the xTract1 Utility. 17. The C3 XML Editor/Viewer. Developing wxPython Applications. A "Hello World" wxPython Application. Converting an xTree to a wxTree, and Vice Versa. Dynamic Module Loading. The Complete Source Code for C3. Appendix A: An Overview of Python for Java Programmers. Comparing the Python and Java Programming Languages. Appendix B: An Overview of Python for Perl Programmers. Index.


Best Seller

| See All
Loading...

Product Details
  • ISBN-13: 9780130211194
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Prentice Hall
  • Height: 234 mm
  • No of Pages: 556
  • Weight: 1078 gr
  • ISBN-10: 0130211192
  • Publisher Date: 22 Jun 2000
  • Binding: SA
  • Language: English
  • Spine Width: 35 mm
  • Width: 177 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Be The First to Review
XML Processing with Python
Pearson Education (US) -
XML Processing with Python
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

XML Processing with Python

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy. 


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | See All
    Loading...


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA