Skip to main content
1-Visitor
April 22, 2013
Question

Parsing schema from command line

  • April 22, 2013
  • 6 replies
  • 1419 views
Does anyone know how one would parse an XML Schema from the command line. I
know how to do it with 'dtgen.exe' for a DTD, but if it will not work with a
schema.

Many thanks

Lynn

    6 replies

    1-Visitor
    April 22, 2013
    Lynn,
    I know that dtgen is for SGML DTDs and that it does the same thing as the compile_doctype command. There is also a -xml argument for compile_doctype.

    Perhaps it is as simple as compile_doctype [doctypeDir] -xml
    1-Visitor
    April 22, 2013
    I just open a document for that schema and if it doesn't parse, AE lets me know.

    Dave
    LynnHales1-VisitorAuthor
    1-Visitor
    April 22, 2013
    Shoot, I was less than clear on WHICH command line I was speaking about.

    With dtgen, one can parse (if they have a licensed copy of Epic on the
    machine) a DTD from the DOS command line.

    Sorry for the confusion.



    Lynn


    1-Visitor
    April 23, 2013

    Not sure if this is the correct answer....probably a better way...but I perform and eic from the command line then I'll make a minor change in my FOSI and save it, which forces a parsing function. 🙂 I'm sure someone has a better answer. 🙂

    LynnHales1-VisitorAuthor
    1-Visitor
    April 24, 2013
    Amy,



    Not quite what I am looking for.



    What I can do with the dtgen.exe file is go to the DOS command line and type
    in something similar to this.

    dtgen -xml -doctype DOCTYPE-NAME DOCTYPE.DTD

    This will then parse the DTD without having to open Epic (but it must be
    installed and licensed on the computer you are doing this on).

    I'm just wondering if there is a similar command line to do this with a
    schema.



    But thank you for another way to get there.

    Lynn


    1-Visitor
    April 24, 2013
    Lynn,
    I wonder if Check Completeness would work. Editor provides two levels of validation - context checking and completeness checking. The description of completeness checking in the Editor help only mentions DTD, because I think that is old Help content.
    I wonder if a -cc argument when opening the file from the command line would get you anywhere? Your completeness check log window might be helpful then...