Provides Java XML Bindings for the AIXM 5.1 Schema for use with the FAA SWIM FNS Service.
- Clone this repository
- Run mvn clean install
- Add dependency to applicable project pom
<dependency>
<groupId>us.dot.faa.swim.jaxb.aixm</groupId>
<artifactId>aixm-5.1</artifactId>
<version>1.0</version>
</dependency>
JAXBContext jaxbContext = JAXBContext.newInstance(AIXMBasicMessageType.class);
Unmarshaller jaxbContext.createUnmarshaller();
StringReader reader = new StringReader(fnsAixmMessage);
AIXMBasicMessageType fnsAixmMessageType = null;
try {
fnsAixmMessageType = (AIXMBasicMessageType) JAXBIntrospector
.getValue(jaxbContext.createUnmarshaller().unmarshal(reader));
} catch (JAXBException e) {
throw e;
} finally {
reader.close();
}