import java.io.File;
import org.mixer2.Mixer2Engine;
import org.mixer2.jaxb.xhtml.Div;
import org.mixer2.jaxb.xhtml.Html;
public class HelloWorld {
public static void main(String[] args) throws Exception {
Mixer2Engine m2e = new Mixer2Engine();
Html html = m2e.loadHtmlTemplate(new File("HelloWorld.html"));
html.getById("hellomsg",Div.class).unsetContent();
html.getById("hellomsg",Div.class).getContent().add("Hello World !");
System.out.println(m2e.saveToString(html));
}
}
おお、なるほど。これは便利だな。
参考:クリボウの Blogger Tips: コードをハイライトする「Blogger Syntax Highlighter」ウィジェット
No comments:
Post a Comment