Closed georgeajit closed 7 years ago
DOMHandle with add() method works fine.
DOMHandle is supposed to be used with add method.
The addAs method is a convenience for times when you don't want to think about DOMHandle and you'd like to work directly with objects of type org.w3c.dom.Document.
To learn more about the IO shortcut methods, please read www.marklogic.com/blog/io-shortcut-marklogic-java-client-api/
The method works with Document.class. Not an issue.
Executing the following snippet throws a java.lang.IllegalArgumentException. The test is trying to verify the addAs() method with signature:
Here is the exception: