I can’t instantiate the class com.docuverse.dom.BasicDocument : my compiler says that it’s an abstract class while it is defined as a non-abstract class in the javadoc…
PS : I have the same problem with BasicText and BasicElement.
I can’t instantiate the class com.docuverse.dom.BasicDocument : my compiler says that it’s an abstract class while it is defined as a non-abstract class in the javadoc…
PS : I have the same problem with BasicText and BasicElement.
With the following classpath (from Tamino 2311):
set classpath=C:\Tamino\Bin\domsdk.jar;
set classpath=%classpath%;C:\Tamino\Bin\w3cdom1.jar;
set classpath=%classpath%;C\Tamino\Tamino\Bin\sax.jar;
This code works for me:
code:
import com.docuverse.dom.BasicDocument;
import com.docuverse.dom.BasicText;
import com.docuverse.dom.BasicElement;public class NewDocument {
public static void main (String args) {
System.out.println(“Creating new BasicDocument…”);
BasicDocument myDoc = new BasicDocument();BasicElement myElement = new BasicElement(myDoc,“root”);
BasicText myText = new BasicText(myDoc,“rootNodeValue”);myElement.appendChild(myText);
myElement.setAttribute(“testAttribute”,“testValue”);myDoc.appendChild(myElement);
System.out.println(“Document created: " + myDoc);
System.out.println(”…Done!");
}}