cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Parsing schema from command line

LynnHales
1-Newbie

Parsing schema from command line

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 6

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

I just open a document for that schema and if it doesn't parse, AE lets me know.

Dave

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


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. 🙂

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


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...