JaxB unmarshal custom xml
问题 I'm currently attempting to unmarshal some existing XML into a few classes I have created by hand. Problem is, I always get an error that tells me, JaxB expects a weather element but finds a weather element. (?) javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.aws.com/aws", local:"weather"). Expected elements are <{}api>,<{}location>,<{}weather> I tried with and without "aws:" in the elements' name. Here's my weather class: @XmlRootElement(name = "aws:weather") public