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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

batch file for saving as xml from sgml

epichelp
6-Contributor

batch file for saving as xml from sgml

Is it possible to create a batch file in Arbortext 6.0 that would open each sgml file in a directory and save as an xml file?

1 REPLY 1

You should be able to do this with ACL.

There is a handy ACL command to save SGML as XML. Something like this would work...

xmlName = {your XML name}

if (doc_kind() == "sgml"){

save_as -xml xmlName

}

You would just need to write the bit that reads file from a target directory. Have Editor open each file, run save_as, and close it.

This assumes your SGML is in good order and will save cleanly to XML. If it was authored in Editor, you shouldn't have any problems.

Hope that helps!

Top Tags