Skip to content

samply/mdr-tools-xml-conv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDR Tools XML Converter

Convert model objects to an mdr XML file.

xsd/common.xsd is Copyright (C) 2015 Working Group on Joint Research, University Medical Center Mainz and licensed under GNU GPL 3 (see file header for details).

Example Usage:

Namespace namespace = new Namespace();
/*
    Add groups, data elements... (see: https://github.com/samply/mdr-tools-model)
*/
String filename = "Your/Output/Path/mymdrfile.xml"
BufferedWriter writer = new BufferedWriter(new FileWriter(filename));
ModelToXSDObjects converter = new ModelToXSDObjects();
Export export = converter.convert(namespace);
JAXB.marshal(export,writer);