#NEWLINE# def append( self , parent , content ) : #NEWLINE# #INDENT# if content . tag . startswith ( '_' ) : #NEWLINE# #INDENT# raise Exception ( 'raw XML not valid as attribute value' ) #NEWLINE# #UNINDENT# child = ElementWrapper ( child . value ) #NEWLINE# parent . append ( child )