001/* 002 The sole purpose of this class is to create the text file that can be 003 copied into a JMRI .xml file to ease the creation of a CTC panel from 004 scratch. 005 */ 006package jmri.jmrit.ctc.editor.code; 007 008import java.io.PrintWriter; 009 010/** 011 * @author Gregory J. Bedlek Copyright (C) 2018, 2019 012 */ 013public class CreateXMLFiles { 014 015 public static void generateProlog(PrintWriter printWriter) { 016 printWriter.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); // NOI18N 017 printWriter.println("<?xml-stylesheet href=\"/xml/XSLT/panelfile-2-9-6.xsl\" type=\"text/xsl\"?>"); // NOI18N 018 printWriter.println("<layout-config xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://jmri.org/xml/schema/layout-2-9-6.xsd\">"); // NOI18N 019 } 020 021 public static void generateEpilogue(PrintWriter printWriter) { 022 printWriter.println("</layout-config>"); // NOI18N 023 } 024}