hi im trying to use cobra as part of lobo i have lobo installed and the cobra library imported to netbeans but some of the imports are unfixable i got some code from a froum so it should work as the author stated but i still have issues the code is package cobtest;

import com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl;
import java.net.URL;
import org.omg.CORBA_2_3.portable.InputStream;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Cobtest {



public static void main(String[] args) {
UserAgentContext uacontext = new SimpleUserAgentContext();//userAgentContext has red line under but i should have all imports done
DocumentBuilderImpl builder = new DocumentBuilderImpl(rcontext);
URL url = new URL(TEST_URI);
InputStream in = url.openConnection().getInputStream();
try {
Document d = builder.parse(new InputSourceImpl(in, TEST_URI, "utf-8"));
} finally {
System.out.println("blah");
}
in.close();
Element ele = d.getElementById("name");
System.out.println(ele.getAttribute("value"));
}
}

any sugestions would be great as cobra documentation on there site leaves much to be desired thanks