You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Cezar Andrei <ce...@bea.com> on 2004/12/21 23:23:40 UTC

RE: Copy and Paste

Did you try XmlCursor.copyXml() ?

Cezar


-----Original Message-----
From: Brian Deep [mailto:bdeep@cc-sw.com] 
Sent: Thursday, October 21, 2004 3:22 PM
To: user@xmlbeans.apache.org
Subject: Copy and Paste

Hi,

I am struggling with a good way to provide c & p for xml data using
xmlbeans.
I tried doing it by using XmlCursors to point to what needs to be copied
and
pasted, but they are not serializable.  I tried it by simply copying and
pasting the
xml text, but XmlCursor.insertChars () always delimits the '<' with
'&lt;'.

Anyone have a good way to copy and paste elements and attributes from
one
section to another?

Thanks,
-- Brian



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


RE: Copy and Paste

Posted by bd...@cc-sw.com.
I realized after I sent that I should have been clearer with my original
post.  I want to place a value on the clipboard (copy) and then retrieve
it to paste.  I can't copy a cursor to the clipboard because it is not
serialiazable.

> Did you try XmlCursor.copyXml() ?
>
> Cezar
>
>
> -----Original Message-----
> From: Brian Deep [mailto:bdeep@cc-sw.com]
> Sent: Thursday, October 21, 2004 3:22 PM
> To: user@xmlbeans.apache.org
> Subject: Copy and Paste
>
> Hi,
>
> I am struggling with a good way to provide c & p for xml data using
> xmlbeans.
> I tried doing it by using XmlCursors to point to what needs to be copied
> and
> pasted, but they are not serializable.  I tried it by simply copying and
> pasting the
> xml text, but XmlCursor.insertChars () always delimits the '<' with
> '&lt;'.
>
> Anyone have a good way to copy and paste elements and attributes from
> one
> section to another?
>
> Thanks,
> -- Brian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org