You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthew Cordes <mc...@maine.edu> on 2000/04/04 22:12:31 UTC

Xerces

Hello all, 

You've beeen really helpful, but I have another question..  Does anyone 
use Apache's Xerces parser.  I want to create a new Document ( DOM Tree)
and have the following code:

	// create XML Document
	Document  xmlDoc = new DOMImplementationImpl().createDocument( null,
             "hello" , null );

   // root element
   Element root = xmlDoc.createElement( "RESULTS" );
   xmlDoc.appendChild( root );

I receive the message "DOM006 Hierarchy request error" every time 
refering to my attempt to append the root node.  Does anyone know 
where my mistake lies?  Previously I used Sun's parser, but I wanted
a change... Does anyone have some advice?

-matt