|
|
@ -124,6 +124,22 @@ main(int argc, /* I - Number of command-line args */ |
|
|
|
MXML_OPAQUE_CALLBACK); |
|
|
|
MXML_OPAQUE_CALLBACK); |
|
|
|
mxmlLoadString(tree, "<foo><bar><one><two>value<two>value2</two></two></one>" |
|
|
|
mxmlLoadString(tree, "<foo><bar><one><two>value<two>value2</two></two></one>" |
|
|
|
"</bar></foo>", MXML_OPAQUE_CALLBACK); |
|
|
|
"</bar></foo>", MXML_OPAQUE_CALLBACK); |
|
|
|
|
|
|
|
mxmlNewCDATA(tree, |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n"); |
|
|
|
|
|
|
|
mxmlNewCDATA(tree, |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n"); |
|
|
|
|
|
|
|
mxmlNewCDATA(tree, |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" |
|
|
|
|
|
|
|
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n"); |
|
|
|
|
|
|
|
|
|
|
|
node = tree->child; |
|
|
|
node = tree->child; |
|
|
|
|
|
|
|
|
|
|
@ -310,10 +326,10 @@ main(int argc, /* I - Number of command-line args */ |
|
|
|
return (1); |
|
|
|
return (1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (ind->num_nodes != 10) |
|
|
|
if (ind->num_nodes != 13) |
|
|
|
{ |
|
|
|
{ |
|
|
|
fprintf(stderr, "ERROR: Index of all nodes contains %d " |
|
|
|
fprintf(stderr, "ERROR: Index of all nodes contains %d " |
|
|
|
"nodes; expected 10.\n", ind->num_nodes); |
|
|
|
"nodes; expected 13.\n", ind->num_nodes); |
|
|
|
mxmlIndexDelete(ind); |
|
|
|
mxmlIndexDelete(ind); |
|
|
|
mxmlDelete(tree); |
|
|
|
mxmlDelete(tree); |
|
|
|
return (1); |
|
|
|
return (1); |
|
|
@ -418,7 +434,7 @@ main(int argc, /* I - Number of command-line args */ |
|
|
|
* Check the mxmlDelete() works properly... |
|
|
|
* Check the mxmlDelete() works properly... |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < 9; i ++) |
|
|
|
for (i = 0; i < 12; i ++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (tree->child) |
|
|
|
if (tree->child) |
|
|
|
mxmlDelete(tree->child); |
|
|
|
mxmlDelete(tree->child); |
|
|
|