CompSci497
Advanced XML Programming with XmlPL
Lecture Notes
Friday, March 2nd, 2007
Contents
- Features of XmlPL Continued
- Types
- Expressions
- Idioms
- Discuss Projects
1) Features of XmlPL Continued
1.1) Types
- Basic types: boolean, integer, real
- string
- constant
- garbage collected
- exception
- Namespaces: prefix, qname
- What are namespaces in XML?
- How to create and use an namespace prefix in XmlPL
- prefix references in XML statements
- Accessor functions: getPrefix, getName, getURI,
getLocalName
- Two names of a prefix
- void
- function return type
- nulling an append expression
- XML types: node, attribute, comment, document, element, pi,
text
- Constructor functions
- Accessor functions: name, value, target, data
- Update functions: append, remove, update
- XML statements as expressions
- Generics: [], ++, <<
1.2) Expressions
- sequence expressions: symantics, ,=
- cast: implicit, explicit
- release
- Memory management and garbage collection
- On the fly processing
- null
- Every type has a null expression
- null == false
1.3) Idioms
2) Discuss Projects