Used xml from example:
<pre>
<books>
<book type='hardback'>
<title>Atlas Shrugged</title>
<author>Ayn Rand</author>
<isbn id='1'>0525934189</isbn>
</book>
</books>
</pre>
And get this output:
a@b ~/ $ xmlstarlet pyx input.xml
(books
-\n
(book
Atypehardback
-\n
(title
-Atlas Shrugged
)title
-\n
(author
-Ayn Rand
)author
-\n
(isbn
Aid1
-0525934189
)isbn
-\n
)book
-\n
)books
As you can see attribute names and their values have no space between.
Have the same issue with:
Centos 5.4
1.2.1
compiled against libxml2 2.6.26, linked with 20632
compiled against libxslt 1.1.17, linked with 10117
Centos 5.4
1.3.0
compiled against libxml2 2.6.32, linked with 20632
compiled against libxslt 1.1.17, linked with 10117
Centos 6
1.3.0 with latest libxml2
Is there a bug or undoccumented feature?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Don't know if it's the solve but i just added
fprintf(stdout, " ");
after
print_qname(prefix, localname);
in xml_pyx.c
Thanks for the report. I introduced this bug in version 1.1.0 (commit 5895befb8d), and didn't notice it because the test case for pyx didn't include attributes, oops!
Now fixed in 5357848c242404c3e3c4b3bd1520360c9661452d
Fixed in release 1.3.1