projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document other format-related elements.
[pspp]
/
parse-xml.c
diff --git
a/parse-xml.c
b/parse-xml.c
index 4d352ce8d8cbfe0f03a400fe558c09e644d94a2b..d8726abcceeb23dbc3de7a64ec49da04e389a47e 100644
(file)
--- a/
parse-xml.c
+++ b/
parse-xml.c
@@
-113,7
+113,11
@@
print_attributes (xmlNode * a_node)
{
printf ("%s", node->name);
for (xmlAttr *attr = node->properties; attr; attr = attr->next)
{
printf ("%s", node->name);
for (xmlAttr *attr = node->properties; attr; attr = attr->next)
- printf (" %s", attr->name);
+ {
+ printf (" %s", attr->name);
+ if (!strcmp ((char *) attr->name, "baseFormat"))
+ printf ("=%s", (char *) xmlGetProp (node, attr->name));
+ }
putchar ('\n');
}
putchar ('\n');
}
@@
-163,7
+167,7
@@
static void
print_xml (xmlDoc *doc, xmlNode *node)
{
xmlBuffer *buf = xmlBufferCreate();
print_xml (xmlDoc *doc, xmlNode *node)
{
xmlBuffer *buf = xmlBufferCreate();
- xmlNodeDump (buf, doc, node, 0,
1
);
+ xmlNodeDump (buf, doc, node, 0,
0
);
xmlBufferDump (stdout, buf);
xmlBufferFree (buf);
putchar ('\n');
xmlBufferDump (stdout, buf);
xmlBufferFree (buf);
putchar ('\n');