throws SAXException {
serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADERS, ELEMENT_NAME_HEADERS, EMPTY_ATTRIBUTES);
// iterate over the headers
for (Iterator iter = entry.getHeaders(); iter.hasNext();) {
final Header header = (Header) iter.next();
serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADER, ELEMENT_NAME_HEADER, EMPTY_ATTRIBUTES);
serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADER_NAME, ELEMENT_NAME_HEADER_NAME,
EMPTY_ATTRIBUTES);
final String name = header.getName();
serializer.characters(name.toCharArray(), 0, name.length());
serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADER_NAME, ELEMENT_NAME_HEADER_NAME);
serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADER_VALUE, ELEMENT_NAME_HEADER_VALUE,
EMPTY_ATTRIBUTES);
final String value = header.getValue();
serializer.characters(value.toCharArray(), 0, value.length());
serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADER_VALUE, ELEMENT_NAME_HEADER_VALUE);
serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
ELEMENT_NAME_HEADER, ELEMENT_NAME_HEADER);