All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
RemoveMathFromGDML.XMLpurifier Class Reference

XML parsing approach. More...

Inheritance diagram for RemoveMathFromGDML.XMLpurifier:
RemoveMathFromGDML.GDMLexpressionRemover

Public Member Functions

def __init__
 
def purifyNode
 
- Public Member Functions inherited from RemoveMathFromGDML.GDMLexpressionRemover
def __init__
 
def initROOT
 
def pass_floats
 
def purify_native
 
def purify_ROOT
 

Additional Inherited Members

- Static Public Member Functions inherited from RemoveMathFromGDML.GDMLexpressionRemover
def sanitize
 
- Public Attributes inherited from RemoveMathFromGDML.GDMLexpressionRemover
 constants
 
 environment
 
 options
 
 formula
 
 purify
 
 ROOT
 

Detailed Description

XML parsing approach.

Definition at line 267 of file RemoveMathFromGDML.py.

Constructor & Destructor Documentation

def RemoveMathFromGDML.XMLpurifier.__init__ (   self,
  args,
  kargs 
)

Definition at line 268 of file RemoveMathFromGDML.py.

269  def __init__(self, *args, **kargs):
270  GDMLexpressionRemover.__init__(self, *args, **kargs)
271 

Member Function Documentation

def RemoveMathFromGDML.XMLpurifier.purifyNode (   self,
  node,
  level = None 
)
Purifies the attributes in the DOM node

Definition at line 272 of file RemoveMathFromGDML.py.

273  def purifyNode(self, node, level = None):
274  """Purifies the attributes in the DOM node"""
275  attributes = node.attributes
276  if not attributes: return
277  for name, value in attributes.items():
278  purified = self.purify(value)
279  if value != purified:
280  logging.debug("Evaluated '%s' into '%s'", value, purified)
281  attributes[name] = str(purified)
282  # if
# for attributes

The documentation for this class was generated from the following file: