when export to XML I'm getting the following error.
Warning: htmlspecialchars() expects parameter 1 to be string, array given in htmlspecialchars() (line 1552 of /drupal/includes/bootstrap.inc).
The resulting XML is also garbled by devel/krumo stacks but it's probably not avoidable.
part of the stack below.
(Array, 7 elements)
6: htmlspecialchars() (Array, 1 element)
args (Array, 3 elements)
0 (Array, 5 elements)
rdftype (Array, 1 element)
name (Array, 1 element)
description (Array, 1 element)
vid (Array, 2 elements)
parent (Array, 2 elements)
1 (Integer) 3
2 (String, 5 characters ) UTF-8
5: check_plain() (Array, 2 elements)
file (String, 27 characters ) includes/bootstrap.inc:1552
args (Array, 1 element)
0 (Array, 5 elements)
rdftype (Array, 1 element)
name (Array, 1 element)
description (Array, 1 element)
vid (Array, 2 elements)
parent (Array, 2 elements)
4: taxonomy_xml_xml_create() (Array, 2 elements)
file (String, 56 characters ) sites/all/modules/taxonomy_xml/formats/xml_form...
sites/all/modules/taxonomy_xml/formats/xml_format.inc:72
args (Array, 1 element)
0 (String, 1 characters ) 6
Comments
Comment #1
drzraf commentedfound the problem: the RDF module adds array values to taxonomy_vocabulary_load().
patch attached
Comment #2
drzraf commentedComment #3
dman commentedGood spotting.
The current code just assumes any attribute on the object is probably worth serializing (lazy, but the most useful)
Looks like an OK solution, though maybe we could protect against this by checking is_array() rather than that one key.
The xml format doesn't get much love - support for that old build-xml-by-string concatenation is legacy from D5, and has a number of ways it can fail.