Xml.dom.minidom Reading (and writing) XML from Python
[Pages:59]xml.dom.minidom
Reading (and writing) XML from Python
Prof. Andrew C.R. Martin andrew.martin@ucl.ac.uk
Aims and objectives
A brief introduction to XML (and XHTML) documents
Know problems in reading and writing XML
Understand the requirements of XML parsers and the two main types
Know how to write code using the DOM parser
PRACTICAL: write a script to read XML
What is XML?
XML doesn't DO anything
XML is used to structure, store and transport data.
A simple markup language to allow structured representation of data
What is XML?
Uses `tags' (or `elements') to wrap pieces of data.
Andrew Martin Adrian Shepherd 1st April 2020 The students are very good this year!
Looks a bit like HTML, but you invent your own tags to structure the data.
What is XML?
Tags may also contain attributes
Andrew Martin Adrian Shepherd The students are very good this year!
What is XML?
Unbalanced tags are special
Andrew Martin Adrian Shepherd The students are very good this year! April fool!
A more complex example
x-ray
210.tlau?otgrsncisibon-s:unpgppttaeaaetasiiircnr:geeieosdaddplotwisptoaieynthngnaiilsnntaguxasned
the opening tag
May contain data and/or
x-ray other (nested) tags
1.8
0.20
XML technologies
DTDs / XML-Schema
Stylesheets (XSL/CSS)
XSLT
Native XML databases (e.g. eXist or BaseX)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- beautiful soup documentation — beautiful soup v4 0 0
- automating daily weather chart download and email report
- ex 1 steal movies
- scrapy and elasticsearch powerful web python summit
- python xml pr ocessing with relearn
- information retrieval and web search
- reading and writing xml from python
- crawling the web with scrapy
- beautiful soup documentation read the docs
- reading xml introducing xpath
Related searches
- reading and writing games for 4th graders
- 2nd grade reading and writing worksheets free
- reading and writing statistics
- reading and writing worksheets
- 2nd grade reading and writing worksheet
- free reading and writing websites
- free reading and writing worksheets
- 4th grade reading and writing worksheets
- free reading and writing printable worksheets
- esl reading and writing practice
- reading and writing placement test
- reading and writing skills