| 105 | } |
| 106 | |
| 107 | ustring lookupAttribute( const Attributes &attributes, const XMLCh *attribute_name ) |
| 108 | { |
| 109 | XMLSize_t attr_index; |
| 110 | if ( !attributes.getIndex( attribute_name, attr_index ) ) |
| 111 | { |
| 112 | throw E57_EXCEPTION2( ErrorBadXMLFormat, "attributeName=" + toUString( attribute_name ) ); |
| 113 | } |
| 114 | return ( toUString( attributes.getValue( attr_index ) ) ); |
| 115 | } |
| 116 | |
| 117 | bool isAttributeDefined( const Attributes &attributes, const XMLCh *attribute_name ) |
| 118 | { |
no test coverage detected