diff options
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/xml.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/fitz/xml.c b/source/fitz/xml.c index 34a6b51e..1dd3512f 100644 --- a/source/fitz/xml.c +++ b/source/fitz/xml.c @@ -169,6 +169,12 @@ static inline int iswhite(int c) static void xml_emit_open_tag(struct parser *parser, char *a, char *b) { fz_xml *head, *tail; + char *ns; + + /* skip namespace prefix */ + for (ns = a; ns < b; ++ns) + if (*ns == ':') + a = ns + 1; head = fz_malloc_struct(parser->ctx, fz_xml); if (b - a > sizeof(head->name) - 1) |