diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/formats/osxml/OsxmlEventParser.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/src/formats/osxml/OsxmlEventParser.cpp b/src/formats/osxml/OsxmlEventParser.cpp index 788f376..c9254b0 100644 --- a/src/formats/osxml/OsxmlEventParser.cpp +++ b/src/formats/osxml/OsxmlEventParser.cpp @@ -253,6 +253,12 @@ static void xmlStartElementHandler(void *ref, const XML_Char *name,  		// Convert the C string to a std::string  		const std::string key{*(attr++)}; +		// Ignore xml namespace declarations +		if (Utils::startsWith(key, "xmlns:") && parser->getData().depth == 1) { +			attr++; +			continue; +		} +  		// Search the location of the key  		SourceLocation keyLoc;  		auto it = attributeOffsets.find(key);  | 
