From ed9c981989f007a124dc22dcde28284395053764 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 16 Dec 2011 09:59:40 +0100 Subject: [xml] complete missing namespace declarations for child nodes To allow lasso_node_impl_init_from_xmlnode to do proper namespace checking, child node which are not of the same namespace as their parent in their XSD schema must have an explicit namespace declared in the XmlSnippet. --- lasso/xml/is_interaction_request.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lasso/xml/is_interaction_request.c') diff --git a/lasso/xml/is_interaction_request.c b/lasso/xml/is_interaction_request.c index 55cd40f7..92037d9a 100644 --- a/lasso/xml/is_interaction_request.c +++ b/lasso/xml/is_interaction_request.c @@ -55,15 +55,17 @@ static struct XmlSnippet schema_snippets[] = { { "ResourceID", SNIPPET_NODE, - G_STRUCT_OFFSET(LassoIsInteractionRequest, ResourceID), NULL, NULL, NULL}, + G_STRUCT_OFFSET(LassoIsInteractionRequest, ResourceID), NULL, + LASSO_DISCO_PREFIX, LASSO_DISCO_HREF}, { "EncryptedResourceID", SNIPPET_NODE, - G_STRUCT_OFFSET(LassoIsInteractionRequest, EncryptedResourceID), NULL, NULL, NULL}, + G_STRUCT_OFFSET(LassoIsInteractionRequest, EncryptedResourceID), NULL, + LASSO_DISCO_PREFIX, LASSO_DISCO_HREF}, { "Inquiry", SNIPPET_LIST_NODES, G_STRUCT_OFFSET(LassoIsInteractionRequest, Inquiry), NULL, NULL, NULL}, /* TODO : KeyInfo */ - { "id", SNIPPET_ATTRIBUTE, + { "id", SNIPPET_ATTRIBUTE | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoIsInteractionRequest, id), NULL, NULL, NULL}, - { "language", SNIPPET_ATTRIBUTE, + { "language", SNIPPET_ATTRIBUTE | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoIsInteractionRequest, language), NULL, NULL, NULL}, { "maxInteractTime", SNIPPET_ATTRIBUTE | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoIsInteractionRequest, maxInteractTime), NULL, NULL, NULL}, -- cgit