Re: [AXIS2][AXIOM] org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR with OMElement created from XML file. HELP ME PLEASE, IMPORTANT!

2012-10-02 Thread Andreas Veithen
Can you please create a bug report for this here: https://issues.apache.org/jira/browse/AXIOM Make sure that you mention the exact Axiom version you are using, provide the necessary code to reproduce the issue and add the complete stack trace. Andreas On Mon, Oct 1, 2012 at 12:02 PM, FILIPPO

Re: [AXIS2][AXIOM] org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR with OMElement created from XML file. HELP ME PLEASE, IMPORTANT!

2012-10-02 Thread FILIPPO AGAZZI
Hi, I solved the problem. I understand that documentElement has to be imported. I found ElementHelper#importOMElement(OMElement, OMFactory). With this method i solved, but i found a problem: instead of passing the object omFactory (OMFactory omFactory) to importOMElement, i needed to do sth like

[AXIS2][AXIOM] org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR with OMElement created from XML file. HELP ME PLEASE, IMPORTANT!

2012-10-01 Thread FILIPPO AGAZZI
Hi, i've got a big problem with this: i wanto to do sth like this. FileInputStream policyStream = null; try { policyStream = new FileInputStream (policy_file); } catch (FileNotFoundException e) { e.printStackTrace();