Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
xmllib Namespace Reference

Data Structures

class  Error
 

Variables

string version = '0.3'
 
string _S = '[ \t\r\n]+'
 
string _opS = '[ \t\r\n]*'
 
string _Name = '[a-zA-Z_:][-a-zA-Z0-9._:]*'
 
string _QStr = "(?:'[^']*'|\"[^\"]*\")"
 
tuple illegal = re.compile('[^\t\r\n -\176\240-\377]')
 
tuple interesting = re.compile('[]&<]')
 
tuple amp = re.compile('&')
 
tuple ref = re.compile('&(' + _Name + '|#[0-9]+|#x[0-9a-fA-F]+)[^-a-zA-Z0-9._:]')
 
tuple entityref = re.compile('&(?P<name>' + _Name + ')[^-a-zA-Z0-9._:]')
 
tuple charref = re.compile('&#(?P<char>[0-9]+[^0-9]|x[0-9a-fA-F]+[^0-9a-fA-F])')
 
tuple space = re.compile(_S + '$')
 
tuple newline = re.compile('\n')
 
tuple attrfind
 
tuple starttagopen = re.compile('<' + _Name)
 
tuple starttagend = re.compile(_opS + '(?P<slash>/?)>')
 
tuple starttagmatch
 
tuple endtagopen = re.compile('</')
 
tuple endbracket = re.compile(_opS + '>')
 

Detailed Description

A parser for XML, using the derived class as static DTD.

Variable Documentation

string _Name = '[a-zA-Z_:][-a-zA-Z0-9._:]*'

Definition at line 18 of file xmllib.py.

string _opS = '[ \t\r\n]*'

Definition at line 17 of file xmllib.py.

string _QStr = "(?:'[^']*'|\"[^\"]*\")"

Definition at line 19 of file xmllib.py.

string _S = '[ \t\r\n]+'

Definition at line 16 of file xmllib.py.

tuple amp = re.compile('&')

Definition at line 23 of file xmllib.py.

tuple attrfind
Initial value:
1 = re.compile(
2  _S + '(?P<name>' + _Name + ')'
3  '(' + _opS + '=' + _opS +
4  '(?P<value>'+_QStr+'|[-a-zA-Z0-9.:+*%?!\(\)_#=~]+))?')

Definition at line 30 of file xmllib.py.

tuple charref = re.compile('&#(?P<char>[0-9]+[^0-9]|x[0-9a-fA-F]+[^0-9a-fA-F])')

Definition at line 26 of file xmllib.py.

tuple endbracket = re.compile(_opS + '>')

Definition at line 40 of file xmllib.py.

tuple endtagopen = re.compile('</')

Definition at line 39 of file xmllib.py.

tuple entityref = re.compile('&(?P<name>' + _Name + ')[^-a-zA-Z0-9._:]')

Definition at line 25 of file xmllib.py.

tuple illegal = re.compile('[^\t\r\n -\176\240-\377]')

Definition at line 20 of file xmllib.py.

tuple interesting = re.compile('[]&<]')

Definition at line 21 of file xmllib.py.

tuple newline = re.compile('\n')

Definition at line 28 of file xmllib.py.

tuple ref = re.compile('&(' + _Name + '|#[0-9]+|#x[0-9a-fA-F]+)[^-a-zA-Z0-9._:]')

Definition at line 24 of file xmllib.py.

tuple space = re.compile(_S + '$')

Definition at line 27 of file xmllib.py.

tuple starttagend = re.compile(_opS + '(?P<slash>/?)>')

Definition at line 35 of file xmllib.py.

tuple starttagmatch
Initial value:
1 = re.compile('<(?P<tagname>'+_Name+')'
2  '(?P<attrs>(?:'+attrfind.pattern+')*)'+
3  starttagend.pattern)

Definition at line 36 of file xmllib.py.

tuple starttagopen = re.compile('<' + _Name)

Definition at line 34 of file xmllib.py.

string version = '0.3'

Definition at line 9 of file xmllib.py.