Generate XML parsers with xsd command line tool:

  1. install prerequisites: xsd 3.2.0 (Code Synthesis XSD)
     See instructions in lib directory how to install the xsd command line tool with needed libraries.
  2. generate manifest xml parser files with command (the needed XSD file can be found in etc/schema/OpenDocument_manifest.xsd):
     'xsd cxx-tree --type-naming ucc --function-naming lcc --generate-doxygen --generate-serialization --namespace-map urn:oasis:names:tc:opendocument:xmlns:manifest:1.0=digidoc::manifest --generate-intellisense --root-element-first OpenDocument_manifest.xsd'
  3. generate XML DSig xml parser files with command (the needed XSD file can be found in etc/schema/xmldsig-core-schema.xsd):
     'xsd cxx-tree --type-naming ucc --function-naming lcc --generate-doxygen --generate-serialization --namespace-map http://www.w3.org/2000/09/xmldsig#=digidoc::dsig --namespace-map http://uri.etsi.org/01903/v1.3.2#=digidoc::xades --generate-intellisense --root-element-first xmldsig-core-schema.xsd'
  4. generate XAdES xml parser files with command (the needed XSD file can be found in etc/schema/XAdES.xsd):
     'xsd cxx-tree --type-naming ucc --function-naming lcc --generate-doxygen --generate-serialization --namespace-map http://www.w3.org/2000/09/xmldsig#=digidoc::dsig --namespace-map http://uri.etsi.org/01903/v1.3.2#=digidoc::xades --generate-intellisense --root-element-first XAdES.xsd'
     
	xsd cxx-tree --generate-ostream --namespace-map http://www.w3.org/2000/09/xmldsig#=digidoc::dsig --generate-intellisense --generate-serialization  --generate-doxygen xmldsig-core-schema.xsd
    xsd cxx-tree --generate-ostream --namespace-map http://www.w3.org/2000/09/xmldsig#=digidoc::dsig --namespace-map http://uri.etsi.org/01903/v1.3.2#=digidoc::xades --generate-intellisense --generate-serialization  --generate-doxygen --root-element QualifyingProperties XAdES.xsd
    xsd cxx-tree --file-per-type --generate-ostream --namespace-map http://www.w3.org/2000/09/xmldsig#=digidoc::dsig --namespace-map http://uri.etsi.org/01903/v1.3.2#=digidoc::xades --generate-intellisense --generate-serialization  --generate-doxygen --root-element QualifyingProperties XAdES.xsd
    xsd cxx-tree --generate-intellisense --generate-doxygen --type-naming ucc --function-naming lcc --root-element-first  --output-dir ../../src/xml conf.xsd

