gmarkup: Add g_markup_collect_known_attributes()

Add a variant of g_markup_collect_attributes() which will
ignore unknown attributes (such as those from different XML
namespaces) when parsing markup, rather than returning
G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE as g_markup_collect_attributes()
does.

Patch by Philip Withnall,
https://bugzilla.gnome.org/show_bug.cgi?id=665634
This commit is contained in:
Matthias Clasen
2012-08-16 23:40:08 -04:00
parent 21aff13d22
commit 8d40389d15
5 changed files with 375 additions and 245 deletions

View File

@@ -1125,6 +1125,7 @@ g_markup_parse_context_pop
<SUBSECTION>
GMarkupCollectType
g_markup_collect_attributes
g_markup_collect_known_attributes
<SUBSECTION Private>
g_markup_error_quark
</SECTION>