Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 1 Python, XML, and PythonLabs Fred L. Drake, Jr.

Slides:



Advertisements
Similar presentations
J0 1 Marco Ronchetti - Web architectures – Laurea Specialistica in Informatica – Università di Trento Java XML parsing.
Advertisements

Language Specification using Metamodelling Joachim Fischer Humboldt University Berlin LAB Workshop Geneva
The eXtensible Markup Language (XML) An Applied Tutorial Kevin Thomas.
1 XML Web Services Practical Implementations Bob Steemson Product Architect iSOFT plc.
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
The OpenJade Project. XMLDev 99 conference Didier PH Martin Talva Corporation. OpenJade founder, lead.
Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
1 Departamento de Informatica, UTFSM. Agosto 2006 ACS Working Style Mauricio Araya: Team Leader ACS – UTFSM Team.
Metadata: An Introduction By Wendy Duff October 13, 2001 ECURE.
Jonathan Huelman CSC 415 – Programming Languages
 ACORD ACORD’s Experiences using W3C Schemas Dan Vint Senior Architect
Version Enterprise Architect Redefines Modeling in 2006 An Agile and Scalable modeling solution Provides Full Lifecycle.
PHP and XML TP2653 Advance Web Programming. PHP and XML PHP5 – XML-based extensions, library and functionalities (current XAMPP PHP version is )
23-August-1999© 1999 CNRI, Guido van Rossum August-1999© 1999 CNRI, Guido van Rossum 2 Python Track Opening Words Guido van Rossum
Subcommittee 3D DATA SETS FOR LIBRARIES. SC 3D Exchange of dictionary data Cape Town, (Cape Town/Radley)3 Donald Radley Chairman, SC3D.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Intro to Python Programming (Introduction) Pamela A. Moore Zenia C. Bahorski Eastern Michigan University March 7, 2012 A language to swear by, not at.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
MusicXML David Sears MUMT September, 2009.
Python3 and DM RFC-60 Tim Jenness. Python 3 Version 3.0 released in to be released in September 2.7 was released in 2010 – Critical bug fixes.
Computer Science 111 Fundamentals of Programming I Overview of Programming.
SAX Parsing Presented by Clifford Lemoine CSC 436 Compiler Design.
Python 0 Some material adapted from Upenn cmpe391 slides and other sources.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
Usability Issues Documentation J. Apostolakis for Geant4 16 January 2009.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Session IV Chapter 9 – XML Schemas
Indo-US Workshop, June23-25, 2003 Building Digital Libraries for Communities using Kepler Framework M. Zubair Old Dominion University.
A. Aimar - EP/SFT LCG - Software Process & Infrastructure1 Software Process panel SPI GRIDPP 7 th Collaboration Meeting 30 June – 2 July 2003 A.Aimar -
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
Programming Languages , perfSONAR-PS Developers Meeting Aaron Brown, Maxim Grigoriev, Eric Pouyoul.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Using Python on the WWW Guido van Rossum CNRI
Intro to Python Programming (Part 1) Pamela Moore Zenia Bahorski Eastern Michigan University March 16, 2011 A language to swear by, not at.
COSC617 Project XML Tools Mark Liu Sanjay Srivastava Junping Zhang.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
Python Documentation Projects Developers Day 8th International Python Conference 27 January 2000.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
PHP vs. Python. Similarities are interpreted, high level languages with dynamic typing are Open Source are supported by large developer communities are.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Martin Kruliš by Martin Kruliš (v1.1)1.
14 October 2002GGF6 / CGS-WG1 Working with CIM Ellen Stokes
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
MNCS: DMA Extensions for Multinational Character Strings DMA Technical Committee Integration Subcommittee June 16, 1999 [ notes]
20 November 2002ApacheCon US - Las Vegas, Nevada 1 Xerces2: The Sequel With No Equal Andy Clark.
Tutorial on setting up Zebra: A Z39.50 Server ARD Prasad DRTC Indian Statistical Institute Bangalore.
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
Maite Barroso – WP4 Workshop – 10/12/ n° 1 -WP4 Workshop- Developers’ Guide Maite Barroso 10/12/2002
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
Week-9 (Lecture-1) XML DTD (Data Type Document): An XML document with correct syntax is called "Well Formed". An XML document validated against a DTD is.
1 Introduction to XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
X M L Extensible Markup Language It is a cross platform tool or a language to achieve data transfer between the cross platform. Note  1.XML is not a replacement.
Laurentian University
Jim Fawcett CSE687 – Object Oriented Design Spring 2016
Java XML IS
XML QUESTIONS AND ANSWERS
XML in Web Technologies
Markup Languages Gilok Choi 9/17/2018
XML Problems and Solutions
PyWBEM Python WBEM Client: Overview #2
Jim Fawcett CSE687 – Object Oriented Design Spring 2015
Presentation transcript:

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 1 Python, XML, and PythonLabs Fred L. Drake, Jr.

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 2Outline Python 1.6 and XML –What does Python offer XML users in release 1.6? PythonLabs at BeOpen.com –What does the formation of PythonLabs mean for Python?

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 3 Python 1.5.* and SGML, XML sgmllib, htmllib –Just enough SGML to work with HTML-as-deployed … somewhat. –Dispatcher model usable for small projects (SAX-like). –Does not process any DTD information. xmllib –Simple XML support for ASCII-only element and attribute names. –Namespace support, but difficult to use. –Shared dispatch model from sgmllib, htmllib, so familiar to existing user base. –Not XML 1.0 compliant. –No Unicode support.

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 4 Python 1.6 and XML Existing modules remain for backward compatibility –But xmllib is deprecated. Expat interface is included in standard distributions –Can generate UTF-8 or UTF-16. –Installed by default on Windows. –Add-on package for Linux (RPMs, etc.) – probably installed by default on common distributions. –Requires getting & building Expat separately when building from source. –Jack Jansen, Paul Prescod, Andrew Kuchling. SAX 2 Interface –Contributed by Lars Marius Garshol.

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 5 PyXML Extension Package Validating parser –100% Pure Python by Lars Marius Garshol! Level 1 DOM –Contributed by FourThought, LLC. Many convenience modules –Build DOM documents from ESIS streams. –ISO 8601 date format support. –SAX handler classes to dump a nicely indented XML document. Coordinated by Andrew Kuchling –A product of the XML Special Interest Group at python.org.

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 6 Unicode Support Python 1.6 includes Unicode support in the core! –In source code: u’abc’ –From data: unicode(’raw data from file’, ’iso ’) –From file objects: –Support for over 60 codecs in the standard library. –Uses UTF-16 to avoid excess memory consumption; no support beyond the basic multilingual plane. Basic string type is still 8-bit characters –Avoids breaking legacy code.

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 7 Unicode in Files >>> import codecs >>> f = codecs.open('test.utf8', 'w', encoding='utf-8') >>> f.write(u'Marc-Andr\xE9 Lemburg') >>> f.close() >>> open('test.utf8').readline() 'Marc-Andr\303\251 Lemburg' >>> codecs.open('test.utf8', encoding='utf-8').readline() u'Marc-Andr\351 Lemburg'

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 8 Unicode and Regular Expressions New regular expression matching engine –Supports both Unicode and 8-bit strings. –Matches faster than pcre library used in Python 1.5.*. –Regular expression compiler is 100% Pure Python. –Keeps the Perl-compatible syntax for regular expressions. –Written by Fredrik Lundh of Secret Labs, AB.

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 9 PythonLabs at BeOpen.com

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 10 Who is PythonLabs? The old crew from CNRI: –Guido van Rossum, the creator of Python –Barry Warsaw, maintainer of JPython, MailMan developer –Fred Drake, Python’s Documentation Tzar –Jeremy Hylton, the pragmatic academician And a familiar voice from the community: –Tim Peters, the universal expert

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 11 Why ? Core development team will devote full time to Python –Core language development & implementation. –Community building. –Extend our efforts to improve development and deployment tools: IDLE (Python IDE using Tk) KDevelop integration? CPAN/CTAN-like repository for 3 rd -party packages? –Improve integration facilities Database API. Web-related APIs should support the latest standards. Better visibility in corporate development shops Our development efforts will be 100% Open Source –All software will have a license that conforms to the Open Source Definition (

Washington Area SGML/XML Users Group – 21 June 2000 BeOpen.com 12 Late Breaking News