Skip to main content
1-Visitor
May 15, 2014
Question

batch file for saving as xml from sgml

  • May 15, 2014
  • 1 reply
  • 3052 views

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-Visitor
    May 15, 2014

    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!