Package ivs :: Package aux :: Module xmlparser :: Class XMLParser
[hide private]
[frames] | no frames]

Class XMLParser

source code

Convert a XML page to a dictionary

Instance Methods [hide private]
 
__init__(self, text, logger=None) source code
 
start_element(self, name, attrs)
If a new element is found, at it to the dictionary
source code
 
end_element(self, name)
Remove the element from the queu (and everything after it)
source code
 
char_data(self, data)
Add the value of an element to the dictionary with its designation.
source code
Method Details [hide private]

end_element(self, name)

source code 

Remove the element from the queu (and everything after it)

Parameters:
  • name (string) - designation of the element

char_data(self, data)

source code 

Add the value of an element to the dictionary with its designation.

Parameters:
  • data (string) - value of the element