[ 
http://issues.apache.org/jira/browse/WSCOMMONS-90?page=comments#action_12434046 
] 
            
Ruchith Udayanga Fernando commented on WSCOMMONS-90:
----------------------------------------------------

Hi Chinthaka,

In trying to solve the issue posted here [1] I ran into problem with the what 
you implemented.

In DOOM each factory has a DOM document associated with it. When you call 
getDocumentElement() on an OMfactory DOOM factory will return the document 
element of that particular Document.  Therefore in the DOOM case 
ElementHelper#importOMElement
() always returns the document element of the document of the factory that was 
passed in.

What do you think?

Thanks,
Ruchith

[1] http://issues.apache.org/jira/browse/AXIS2-1135#action_12433943

> Add importNode(OMNode) method into OMFactory
> --------------------------------------------
>
>                 Key: WSCOMMONS-90
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-90
>             Project: WS-Commons
>          Issue Type: Improvement
>          Components: AXIOM
>            Reporter: Ruchith Udayanga Fernando
>            Priority: Blocker
>
> We need to be able to import a node from one OM implementation to another OM 
> implementation. Since an AXIOM object structure must only contain objects 
> from *one* OMFactory.
> Proposed solution:
> Add the following method to OMFactory interface.
> /**
>  * Import the given node as a node of this factory.
>  * @param node The Input node.
>  * @return New node that is created with this factory.
>  */
> public OMNode importNode(OMNode node) ;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to