@@ -0,0 +1,1379 @@
+package jmetest.renderer.loader;%0A%0Aimport com.jme.app.SimpleGame;%0Aimport com.jme.scene.model.ms3d.MilkLoader;%0Aimport com.jme.scene.model.XMLparser.XMLWriter;%0Aimport com.jme.scene.model.XMLparser.SAXReader;%0Aimport com.jme.scene.Node;%0A%0Aimport java.net.URL;%0Aimport java.io.IOException;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.ByteArrayInputStream;%0A%0A/**%0A * Started Date: Jun 5, 2004%0A *%0A * Class test the XMLWriter and SAXReader classes%0A *%0A * @author Jack Lindamood%0A */%0Apublic class TestXMLWriter extends SimpleGame%7B%0A    public static void main(String%5B%5D args) %7B%0A        new TestXMLWriter().start();%0A    %7D%0A    protected void simpleInitGame() %7B%0A        MilkLoader mi=new MilkLoader();%0A        URL MSFile=TestMilkLoader.class.getClassLoader().getResource(%0A        %22jmetest/data/model/msascii/run.ms3d%22);%0A        mi.setBase(TestMilkLoader.class.getClassLoader().getResource(%0A        %22jmetest/data/model/msascii/%22));%0A        Node mi1=mi.load(MSFile);%0A        mi1.setLocalScale(.1f);%0A        ByteArrayOutputStream BO=new ByteArrayOutputStream();%0A        XMLWriter r=new XMLWriter(BO);%0A        try %7B%0A            r.writeScene(mi1);%0A        %7D catch (IOException e) %7B%0A            System.out.println(%22Error writting%22);%0A        %7D%0A        SAXReader sr=new SAXReader();%0A        Node qq=sr.loadXML(new ByteArrayInputStream(BO.toByteArray()));%0A        rootNode.attachChild(qq);%0A%0A    %7D%0A%0A%7D%0A

Test the XMLWriter and SAXReader classes