自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (4)
  • 收藏
  • 关注

空空如也

Perl and XML.pdf

Perl and XML.pdf<br><br>Table of Contents<br>Preface ........................................................................................................................................ 1<br>Assumptions .........................................................................................................................................................1<br>How This Book Is Organized ...............................................................................................................................1<br>Resources..............................................................................................................................................................2<br>Font Conventions..................................................................................................................................................2<br>How to Contact Us ...............................................................................................................................................2<br>Acknowledgments ................................................................................................................................................3<br>Chapter 1. Perl and XML ............................................................................................................ 4<br>1.1 Why Use Perl with XML? ...............................................................................................................................4<br>1.2 XML Is Simple with XML::Simple.................................................................................................................4<br>1.3 XML Processors .............................................................................................................................................7<br>1.4 A Myriad of Modules .....................................................................................................................................8<br>1.5 Keep in Mind... ...............................................................................................................................................8<br>1.6 XML Gotchas .................................................................................................................................................9<br>Chapter 2. An XML Recap........................................................................................................ 11<br>2.1 A Brief History of XML...............................................................................................................................11<br>2.2 Markup, Elements, and Structure ..................................................................................................................13<br>2.3 Namespaces ..................................................................................................................................................15<br>2.4 Spacing .........................................................................................................................................................16<br>2.5 Entities..........................................................................................................................................................17<br>2.6 Unicode, Character Sets, and Encodings .......................................................................................................19<br>2.7 The XML Declaration...................................................................................................................................19<br>2.8 Processing Instructions and Other Markup....................................................................................................19<br>2.9 Free-Form XML and Well-Formed Documents ............................................................................................21<br>2.10 Declaring Elements and Attributes ..............................................................................................................22<br>2.11 Schemas ......................................................................................................................................................22<br>2.12 Transformations..........................................................................................................................................24<br>Chapter 3. XML Basics: Reading and Writing.......................................................................... 28<br>3.1 XML Parsers.................................................................................................................................................28<br>3.2 XML::Parser .................................................................................................................................................34<br>3.3 Stream-Based Versus Tree-Based Processing ...............................................................................................38<br>3.4 Putting Parsers to Work ................................................................................................................................39<br>3.5 XML::LibXML.............................................................................................................................................41<br>3.6 XML::XPath .................................................................................................................................................43<br>3.7 Document Validation....................................................................................................................................44<br>3.8 XML::Writer.................................................................................................................................................46<br>3.9 Character Sets and Encodings.......................................................................................................................50<br>Chapter 4. Event Streams .......................................................................................................... 55<br>4.1 Working with Streams ..................................................................................................................................55<br>4.2 Events and Handlers .....................................................................................................................................55<br>4.3 The Parser as Commodity.............................................................................................................................57<br>4.4 Stream Applications......................................................................................................................................57<br>4.5 XML::PYX...................................................................................................................................................58<br>4.6 XML::Parser .................................................................................................................................................60<br>Chapter 5. SAX.......................................................................................................................... 64<br>5.1 SAX Event Handlers.....................................................................................................................................64<br>5.2 DTD Handlers...............................................................................................................................................70<br>5.3 External Entity Resolution............................................................................................................................73<br>5.4 Drivers for Non-XML Sources ......................................................................................................................74<br>5.5 A Handler Base Class ...................................................................................................................................76<br>5.6 XML::Handler::YAWriter as a Base Handler Class......................................................................................77<br>5.7 XML::SAX: The Second Generation.............................................................................................................78<br>Chapter 6. Tree Processing........................................................................................................ 90<br>6.1 XML Trees ...................................................................................................................................................90<br>6.2 XML::Simple................................................................................................................................................91<br>6.3 XML::Parser's Tree Mode .............................................................................................................................93<br>6.4 XML::SimpleObject .....................................................................................................................................94<br>6.5 XML::TreeBuilder........................................................................................................................................96<br>6.6 XML::Grove .................................................................................................................................................98<br>Chapter 7. DOM ...................................................................................................................... 100<br>7.1 DOM and Perl.............................................................................................................................................100<br>7.2 DOM Class Interface Reference ..................................................................................................................100<br>7.3 XML::DOM................................................................................................................................................107<br>7.4 XML::LibXML...........................................................................................................................................109<br>Chapter 8. Beyond Trees: XPath, XSLT, and More................................................................ 112<br>8.1 Tree Climbers .............................................................................................................................................112<br>8.2 XPath ..........................................................................................................................................................114<br>8.3 XSLT ..........................................................................................................................................................121<br>8.4 Optimized Tree Processing.........................................................................................................................123<br>Chapter 9. RSS, SOAP, and Other XML Applications ........................................................... 125<br>9.1 XML Modules ............................................................................................................................................125<br>9.2 XML::RSS..................................................................................................................................................126<br>9.3 XML Programming Tools ...........................................................................................................................132<br>9.4 SOAP::Lite .................................................................................................................................................134<br>Chapter 10. Coding Strategies ................................................................................................. 137<br>10.1 Perl and XML Namespaces .......................................................................................................................137<br>10.2 Subclassing ...............................................................................................................................................139<br>10.3 Converting XML to HTML with XSLT ....................................................................................................144<br>10.4 A Comics Index ........................................................................................................................................151<br>Colophon ................................................................................................................................ 154

2008-02-10

Perl CGI六天入门

Perl CGI六天入门<br><br> <br>第一天 <br>1.1 Unix环境 <br>1.2 chmod命令 <br><br>1.3 定位Perl和sendmail <br> <br>第二天 <br>2.1 使用Emacs <br>2.2 Perl简介 <br><br>2.3 HTML FORM <br> <br>第三天 <br>3.1 回应脚本 <br>3.2 脚本解释 <br><br>3.3 BODY部分 <br> <br>第四天 <br>4.1 email子过程 <br>4.2 写文件 <br><br>4.3 建立log文件 <br> <br>第五天 <br>5.1 留言板CGI代码 <br>5.2 代码详解 <br><br>5.3 读取log文件 <br> <br>第六天 <br>6.1 设置口令 <br>6.2 计数器 <br> <br>

2008-02-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除