Dear Novell Support,

I have found this code in Internet. And tried it in ECMA Script in
Designer.

However i get an (type) error when I call this function in shell.

NodeSet not a function.


Any idea!
---------------------
function parse(String)
{
var nodeSet = new Packages.com.novell.xml.xpath.NodeSet();
var factory = Packages.com.novell.xml.parser.XMLParserFactory.ne wParser();
var stringreader = Packages.java.io.StringReader;
var strinput = new stringreader(InString);
var doc = factory.parse(strinput);
nodeSet.add(doc);
return nodeSet;
}


--
Sadhna Goyal

Leibniz Rechen Zentrum
Raum LRZ I.1.107
E-Mail: goyal@lrz.de
Phone: +49 89 35831 8880
Fax: +49 89 35831 8680
85748 Garching b. München
Germany