> Greetings all,
>   I'd like to construct a document in memory and transform it.  Since I 
am
> building it from scratch, I'd rather use a Xalan DOM than a Xerces DOM, 
but
> I am unclear on how to create a new Xalan DOM Document.  My first guess 
was
> to look for a static getImplementation() method on 
XalanDOMImplementation,
> but I don't see one.  I must be missing something here...

The Xalan "DOM" is not a full implementation, and does not support full 
mutability.  It can only be built in document order and nodes cannot be 
modified or moved once inserted, and the number of attributes element 
contains is fixed when creating the Element node.

The best way to build an instance is through SAX2 events, but you can take 
a look at the source code in 
xml-xalan/c/src/xalanc/XalanSourceTree/XalanSourceTreeContentHandler.cpp 
to get an idea of how you can build it programmatically.

Dave

Reply via email to