Generate a JavaScript function that takes an element for a complex type
and walks through its children using them to fill in the values for a
JavaScript object.
We don't want to generate Javascript overhead for complex types with simple content models,
at least until or unless we decide to cope with attributes in a general way.