Unmarshalling with multiple namespaces
问题 So, lets say I have this xml with several namespaces. <Envelope xmlns:pdi="http://www.mypage.com/schemas/pdi" xmlns:ib="http://www.mypage.com/schemas/ib" xmlns="http://www.mypage.com/schemas/envelope"> <Product> <pdi:number>123456</pdi:number> </Product> <Instance> <ib:serial>abcdefg</ib:serial> </Instance> </Envelope> I'm trying to build a client for it. I have an Envelope POJO that's declared like this @XmlRootElement(name ="Envelope", namespace = "http://www.mypage.com/schemas/envelope")