93 """ |
93 """ |
94 Public method to read the given attribute of the current tag. |
94 Public method to read the given attribute of the current tag. |
95 |
95 |
96 @param name name of the attribute (string) |
96 @param name name of the attribute (string) |
97 @param default default value (string) |
97 @param default default value (string) |
|
98 @return value of the requested tag attribute (string) |
98 """ |
99 """ |
99 att = self.attributes().value(name) |
100 att = self.attributes().value(name) |
100 if att == "": |
101 if att == "": |
101 att = default |
102 att = default |
102 return att |
103 return att |