Package fileManagers

Examples of fileManagers.XMLController


* @author Tudor
*/
public class NewClass {
    public static void main(String[] args){
        Tree tree=new Tree();
       XMLController ctr=new XMLController(tree);
       tree.getRoot().setData("NewTree");
       Node n1=new Node("n1",tree.getRoot());
       Node n2=new Node("n2",tree.getRoot());
       Node n3=new Node("n3",tree.getRoot());
      
       n1.setFieldName("f1");
       n1.setFieldType("String");
       n1.addField();
      
       n2.setFieldName("f2");
       n2.setFieldType("String");
       n2.addField();
      
       Node n21=new Node("n2.1",n2);
       Node n22=new Node("n2.2",n2);
      
       Node n31=new Node("n3.1",n3);
       n31.setFieldName("f31");
       n31.setFieldType("String");
       n31.addField();
       Node n32=new Node("n3.2",n3);

       ctr.parseToXML();
      
      
       String xml = "<?xml version=\"1.0\"?><!DOCTYPE cael []>"+
                "<cael version=\"1.0\" aeh=\"reject\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"caels.xsd\">"+
                "<countryCode name=\"Austria\" threela=\"ROU\" twola=\"RO\" numeric=\"642\"/>"+
View Full Code Here

TOP

Related Classes of fileManagers.XMLController

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.