Commit 93beb5cf authored by koennecke's avatar koennecke
Browse files

Adapted astriumnet.c to an updated mxml version

parent 95db288f
......@@ -116,7 +116,7 @@ static int decodeXML(Ascon *a)
{
pDynString xmlBuffer;
mxml_node_t *root, *param;
mxml_attr_t attr;
const char *attrName, *attrValue;
int i;
......@@ -140,13 +140,13 @@ static int decodeXML(Ascon *a)
return 0;
}
for(i = 0; i < param->value.element.num_attrs; i++){
attr = param->value.element.attrs[i];
DynStringConcat(a->rdBuffer,attr.name);
if(attr.value != NULL){
for(i = 0; i < mxmlElementGetAttrCount(param); i++){
attrValue = mxmlElementGetAttrByIndex(param,i,&attrName);
DynStringConcat(a->rdBuffer,attrName);
if(attrValue != NULL){
DynStringConcat(a->rdBuffer,"=");
kommaToPt(attr.value);
DynStringConcat(a->rdBuffer,attr.value);
kommaToPt((char *)attrValue);
DynStringConcat(a->rdBuffer,attrValue);
}
DynStringConcat(a->rdBuffer,":");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment