in reply to perl xml and array issue

I seem to have no trouble parsing through single xml elements

The word is iterating

Remember how you dereferenced product?

(@{$file->{product}})
Do the same for colors. References quick reference