gdata.tlslite.utils.xmltools
index
/usr/local/google/home/afshar/src/external-gdata-release/google3/src/gdata/tlslite/utils/xmltools.py

Helper functions for XML.
 
This module has misc. helper functions for working with XML DOM nodes.

 
Modules
       
array
math
xml.dom.minidom
os
re
xml.sax.saxutils
sys
traceback

 
Functions
       
checkName(element, name)
checkNoMoreAttributes(element)
escape(s)
getAttribute(element, attrName, regEx='')
getChild(element, index, name=None)
getChildIter(element, index)
getChildOrNone(element, index)
getLastChild(element, index, name=None)
getReqAttribute(element, attrName, regEx='')
getText(element, regEx='')
indent(s, steps, ch='\t')
#Function for adding tabs to a string
parseAndStripWhitespace(s)
parseDocument(s)
stripWhitespace(element, tab=0)
#Goes through a DOM tree and removes whitespace besides child elements,
#as long as this whitespace is correctly tab-ified

 
Data
        base64RegEx = r'[A-Za-z0-9+/]+={0,4}\Z'
booleanRegEx = '(true)|(false)'
certsListRegEx = r'(0)?(1)?(2)?(3)?(4)?(5)?(6)?(7)?(8)?(9)?\Z'
cryptoIDRegEx = r'([a-km-z3-9]{5}\.){3}[a-km-z3-9]{5}\Z'
dateTimeRegEx = r'\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ\Z'
exprRegEx = r'[a-zA-Z0-9 ,()]{1,200}\Z'
keyRegEx = r'[A-Z]\Z'
keysListRegEx = r'(A)?(B)?(C)?(D)?(E)?(F)?(G)?(H)?(I)?(J)?(K)?(L)?...O)?(P)?(Q)?(R)?(S)?(T)?(U)?(V)?(W)?(X)?(Y)?(Z)?\Z'
notAfterDeltaRegEx = r'0|([1-9][0-9]{0,8})\Z'
nsRegEx = r'http://trevp.net/cryptoID\Z'
sha1Base64RegEx = r'[A-Za-z0-9+/]{27}=\Z'
shortStringRegEx = r'.{1,100}\Z'
urlRegEx = r'http(s)?://.{1,100}\Z'