daniel3735928559/guppy

Is there a way to insert xml into a guppy editor?

Closed this issue · 1 comments

I'm trying to insert the contents of one guppy object into another without replacement.
I've been successful at this by extracting the doc object g1.engine.insert_doc(g2.doc()); (Basically, I want to save the contents of the editor somewhere for later use). However, I do not believe this is the best way to do this because the doc object takes up a lot of space in memory. Are there any other approaches to this?

It isn't the most efficient, but that's the method supported in the public API. There is also the undocumented internal interface g1.engine.insert_nodes(xml_document.childNodes)which will be faster if you're finding a need for the extra speed.