Xml.dom.minidom Reading (and writing) XML from Python - bioinf
[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
- python enumerate list with index
- built in functions university of washington
- simple sets and indexing amplampl
- python tutorial list and negative indexing iit guwahati
- reading and writing xml from python bioinf
- python cheat sheet
- fem example in python university of pittsburgh
- python notes for professionals
- processing lists in prolog 2 university of birmingham
- learning python index