|
ParserJAXB
Documentation for FIXatdl JAXB based parser
IntroductionUsing Maven 2, you must include the parser artifact dependency, which is: <dependency> <groupId>br.com.investtools.fix.atdl</groupId> <artifactId>atdl4j-parser-jaxb</artifactId> <version>1.1-beta-2.4.9</version> </dependency> JAXBContext jc = JAXBContext.newInstance("br.com.investtools.fix.atdl.core.jaxb");
Unmarshaller unmarshaller = jc.createUnmarshaller();
InputStream is = new FileInputStream("strategies.xml");
Strategies doc = (Strategies) unmarshaller.unmarshal(is);
for (br.com.investtools.fix.atdl.core.jaxb.StrategyT s : doc .getStrategy()) {
System.out.println(s.getName());
} The JAXB based parser was built using JAXB 2.1 and the Maven 2 JAXB 2 plugin. For further information regarding JAXB please refer to https://jaxb.dev.java.net/. For a complete example refer to this test. |
► Sign in to add a comment