jQuery Autocomplete

jQuery Autocomplete

Hi. I am using the jQuery AutoComplete pluging. My servlet is returing XML in the following format:

<serial_numbers>
<serial_number>123456</serial_number>
<serial_number>987654</serial_number>
<serial_number>1111111</serial_number>
</serial_numbers>

I am overriding the parse function with the following function to parse the xml:

parse: function(data) {
            var parsed = [];

            $(data).find("serial_number").each(function() {
                parsed[parsed.length] = {
                    data: [$(this).text()],
                    value: $(this).text(),
                    result: [$(this).text()]
                };
            });
            return parsed;
        }

The problem is that when I start to type characters into the automcomplete field, i am getting the following error in Firebug:

value is undefined
highlight: function(value, term) {
        return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");,

I'm not really sure why value is undefined. The XML appears to be parsed correctly.

I'm using 1.1 of the Autocomplete plugin and 1.4.2 of jQuery.  Any ideas?

Thanks
John