globalXml.putHiddenProperty ("write", new XmlWrite ("write", evaluator, fp, false)); globalXml.putHiddenProperty ("writeToString", new XmlWrite ("writeToString", evaluator, fp, true));
globalXml.putHiddenProperty ("write", new XmlWrite ("write", evaluator, fp)); globalXml.putHiddenProperty ("writeToString", new XmlWriteToString ("writeToString", evaluator, fp));
    public void initializeExtension(Evaluator evaluator) throws EcmaScriptException {        this.evaluator = evaluator;        GlobalObject go = evaluator.getGlobalObject();        ObjectPrototype op = (ObjectPrototype) evaluator.getObjectPrototype();        FunctionPrototype fp = (FunctionPrototype) evaluator.getFunctionPrototype();        ESObject globalXml = new GlobalObjectXml("Xml", evaluator, fp);        globalXml.putHiddenProperty ("length",new ESNumber(1));        globalXml.putHiddenProperty ("read", new XmlRead ("read", evaluator, fp, false));        globalXml.putHiddenProperty ("readFromString", new XmlRead ("readFromString", evaluator, fp, true));        globalXml.putHiddenProperty ("write", new XmlWrite ("write", evaluator, fp, false));        globalXml.putHiddenProperty ("writeToString", new XmlWrite ("writeToString", evaluator, fp, true));        globalXml.putHiddenProperty ("get", new XmlGet ("get", evaluator, fp));        go.putHiddenProperty ("Xml", globalXml);	}