summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-05-02 08:15:50 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-05-02 08:15:50 +0000
commit3ed2d06febd201853345bf8b10c0fe82806cc7c3 (patch)
tree4b98376c52e91249ff66ddf966c7609ed11c2e4d
parent4335ec5b5e49dd8d63ed477d8c665894c41f4e2b (diff)
downloadnavit-3ed2d06febd201853345bf8b10c0fe82806cc7c3.tar.gz
Add:core:Support (by ignoring) xml element xfragment to be used as root element in xi:include'd files.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5769 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/xmlconfig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/xmlconfig.c b/navit/xmlconfig.c
index bbda20e02..722c8d9e4 100644
--- a/navit/xmlconfig.c
+++ b/navit/xmlconfig.c
@@ -955,6 +955,8 @@ xi_start_element(xml_context *context,
xinclude(context, xistate->attribute_names, xistate->attribute_values, doc, error);
return;
}
+ if(!g_ascii_strcasecmp("xfragment", element_name))
+ return;
start_element(context, element_name, xistate->attribute_names, xistate->attribute_values, doc->user_data, error);
doc->active++;
}
@@ -985,7 +987,7 @@ xi_end_element (xml_context *context,
else
doc->last->child=NULL;
if (doc->active > 0) {
- if(!g_ascii_strcasecmp("xi:include", element_name)) {
+ if(!g_ascii_strcasecmp("xi:include", element_name) || !g_ascii_strcasecmp("xfragment", element_name)) {
return;
}
end_element(context, element_name, doc->user_data, error);