Package com.joshondesign.xml

Examples of com.joshondesign.xml.XMLWriter


        public void exportPost(MultiFileOutput out, SNode shape) {

        }

        public void pageEnd(MultiFileOutput out, SketchDocument.SketchPage page) {
            XMLWriter xml = out.getXML();
            int index = out.getPageIndex();
            xml.start("p")
                    .attr("id", "nav")
                    ;
            if(index > 0) {
                xml.start("a","href",out.getPageFilename(index-1));
                xml.text("< prev");
                xml.end();
            } else {
                xml.text("< prev");
            }
            xml.text(" | page " + (index+1) + " | ");
            if(index < page.getDocument().getPages().size()-1) {
                xml.start("a")
                    .attr("href",out.getPageFilename(index+1))
                    .text("next &gt;")
                    .end();
            } else {
                xml.text("next &gt;");
            }
            xml.end();
            xml.end();//body
            xml.end();//html
            out.endPage();
        }
View Full Code Here


            currentFile = new File(dir,"page"+pageIndex+".html");
            if(pageIndex == 0) {
                currentFile = new File(dir,"index.html");
            }
            try {
                xml = new XMLWriter(currentFile);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
View Full Code Here

TOP

Related Classes of com.joshondesign.xml.XMLWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.