This figure illustrates a Java class mapped to a union field in a corresponding XML document. The Customer class contains the attribute shoeSize with a value of 10.5. The shoeSize attribute maps to the <shoe-size> element in the XML document.