Hi,
When parsing a DOM node, many related information are lost. Is it the
behavior of xmlbeans?
Please check point 1, 2 and 3.
public void parseNode(org.w3c.dom.Node node)
{
XmlObject obj = XmlObject.Factory.parse(node);
XmlCursor cursor = obj.newCursor();
//1.) The uri is NULL. The document info with node is lost.
String uri = cursor.documentProperties().getSourceName();
//2.) qname is NULL.
QName qname = cursor.getName();
//3.) Have to patch it like this.
cursor.toNextToken();
//Now qname is OK.
qname = cursor.getName();
}
Thanks,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]