Topic
2 replies Latest Post - ‏2012-12-09T22:09:47Z by SystemAdmin
SystemAdmin
SystemAdmin
265 Posts
ACCEPTED ANSWER

Pinned topic Do you know a tool to generate a XML Schema subset similar to NIEM tools?

‏2008-05-05T19:42:37Z |
NIEM defines an XML standard (using XML Schemas) for government related business. Dan McCreary has written a good article on how to generate XForms starting with the NIEM standard: http://www.ibm.com/developerworks/library/x-xformsniem/

As Dan explains, using an industry standard XML Schema (e.g. NIEM, os-UBL-2.0, STAR) is very useful, but referencing the whole standard uses way too much resources when it comes to validating the xml instances. Instead, you need to generate a subset of the industry standard, just for the data in your project.
The tool that generates the subsets of the large XML Schema is an online tool on the NIEM website and only works on the NIEM standard. See http://niem.gtri.gatech.edu/niemtools/ssgt/index.iepd

My question: are there similar tools available for other standards. In other words, a tool where you select a certain schema element, where the tool automatically selects the dependent schema elements?
I would like to use the os-UBL-2.0 standard for example.
I already contacted NIEM, and they said their tool is only available online.

Message was edited by: WouterH
Updated on 2012-12-09T22:09:47Z at 2012-12-09T22:09:47Z by SystemAdmin
  • dmccreary
    dmccreary
    4 Posts
    ACCEPTED ANSWER

    Re: Do you know a tool to generate a XML Schema subset similar to NIEM tools?

    ‏2008-11-24T14:19:11Z  in response to SystemAdmin
    This is a three step process. First you build a metadata registry. Then you build a shopping cart using a wantlist editor. Then you build the actual subschema XQuery service. I have done this several time but not had the chance to open source the full code. Only fragments to date.

    I am currently working on migrating all the NIEM tools to XForms tools to use XQuery. I will posts some of the samples and related tools here:

    http://en.wikibooks.org/wiki/XRX/NIEM_Services

    Feel free to make suggestions!

    • Dan
    • SystemAdmin
      SystemAdmin
      265 Posts
      ACCEPTED ANSWER

      Re: Do you know a tool to generate a XML Schema subset similar to NIEM tools?

      ‏2012-12-09T22:09:47Z  in response to dmccreary
      Yes! You can use the open source CAM Editor NIEM toolkit to freely perform this function. Import the schema you need the subset for, or visually build a new one using the NIEM drag and drop dictionary designer tool - then export to a new XSD schema using the NIEM 2.1 mode - and this will write your subset instantly. You can also build a matching JAXB binding and a SSGT wantlist at the same time.

      For more information see: http://www.cameditor.org for the tool download and resource

      and the companion site NIEM training videos - http://www.niemtrainingvideos.org

      Enjoy.