This is the XML input:
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>
I am using BaseX 7.9. When I request attributes,
for $book in collection()/bookstore/book
return $book/@*
an error occurs:
[SENR0001] Attributes cannot be serialized: attribute category {"COOKING"}.
How can this be fixed? Thanks for helping me!