<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>There is but we're back to deep memory for me so I gotta check the source code!</p>
<p>All DOM elements belong to a document and if you parse a string, that's a new document.</p>
<p>To get around this there's <br>
</p>
<p><span class="pl-c">$node = $repository->xml->clone( $source_node )</span></p>
<p><span class="pl-c">and <br>
</span></p>
<p><span class="pl-c">$fragment = $repository->xml->contents_of( $source_node )</span></p>
<p><span class="pl-c">these make copies of the whole node, or the contents of the node and these copies are owned by the DOM EPrints uses (if I recall it uses one big DOM document internally, and only converts to new documents on output.<br>
</span></p>
<p><span class="pl-c"><br>
</span></p>
<div class="moz-cite-prefix">On 26/06/2019 14:22, Yuri via Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|9eaadb3b7ffaad7616bbdb301aa33af0v5PEMs14eprints-tech-bounces|ecs.soton.ac.uk|ec6af35b-b9e9-936d-16e9-a119d4e9ab9a@alfa.it">
<pre class="moz-quote-pre" wrap="">Any idea? I'm starting the tediuos process of "->make_element
->appendChild"...
Il 26/06/19 11:42, Yuri via Eprints-tech ha scritto:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi!
eprint_render here.
I'm really bored of doing ->make_element ->appendChild to create an
html, so long and takes ages for a programmer (impossible for a
user/integrator). Is there another way? I've tried with
my $citehtml = "<html here>";
my $citexml = EPrints::XML::parse_string( undef, $citehtml );
$citfrag->appendChild($citexml);
but it returns
appendChild: HIERARCHY_REQUEST_ERR
is there a way, for example to render something (xpage like) and insert
it in the dom?
*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7C0065e9f109134c9c6ca008d6fa3b80c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=U6n2IE3YGMJEt5Lz1wM4Db2m7NoXr5Uy5buUYaPYGPs%3D&reserved=0" originalsrc="http://www.eprints.org/tech.php/" shash="PAOVQBkCnmWlXeX57EKkVrWpu98RN63Y6R0n2xv/zATdYPHgHxsR09tpyBN9Ko0Eycc6fAstYSCDZ1VJ81dghRzuRPApY9pAdJynKGXAaaIkG5RmD8D7ripNlAVFtv4G8kzUYuxANeD/8Up3zKzYfRzVpC+wEccCBaY08nZq+l0=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ctotl%40soton.ac.uk%7C614ba766948d4fce74c308d6fa396d55%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Hbgj6wqxoxz4s3Vw4aA3NnJBpbBE6kdkeB5v3%2Bo3Mjg%3D&amp;reserved=0</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7C0065e9f109134c9c6ca008d6fa3b80c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=AsmlUkpPLmT%2Bb6K6UPI1C2EfIMHjWEBjzfYIlj1oyZo%3D&reserved=0" originalsrc="http://wiki.eprints.org/" shash="CHicfETHYW5raE4H2kNPZnR4zU97/aljHVigYfc9R/YTEJAF6HmrlvVNzC68WLj7mliNRnHDpp1PKk07jcPqotusyZTJ7kyxodTffRBDqhLrflcbc3Vh/UtSMEit25JbCi2+DTT3uSSoRuIj3aUiDvgVndJR+DuWutajbXfUY8U=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ctotl%40soton.ac.uk%7C614ba766948d4fce74c308d6fa396d55%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=HefXTLMAyK0aubXj8WHD1equTdFS5mga8krd2sBuZDQ%3D&amp;reserved=0</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7C0065e9f109134c9c6ca008d6fa3b80c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=mn9jtlxzVzKuKGpO%2Bbll2jqV2Q0zR5%2FtoJlCKseMrQA%3D&reserved=0" originalsrc="http://forum.eprints.org/" shash="wjNqm2JhCZYjNR/4VAz0tQHtSP1zUnEO2hRUh4ThhIsbZReg3VVQQpRFzgRFfPM8CDmNOSgQ+Kxwcp1YoQvr8hiGYypcauvB0U4F3NOP11duZQePtnTlLcNe4tCsmxr3r3Fp99mUfd5C63sb9Z7wJPCZ5O13ttcy94MhOfrTi6c=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ctotl%40soton.ac.uk%7C614ba766948d4fce74c308d6fa396d55%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=jRUdxHxx3O5e%2FyWhqWyUvnduuLNE6H8HOtAkPtgP8hU%3D&amp;reserved=0</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7C0065e9f109134c9c6ca008d6fa3b80c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=U6n2IE3YGMJEt5Lz1wM4Db2m7NoXr5Uy5buUYaPYGPs%3D&reserved=0" originalsrc="http://www.eprints.org/tech.php/" shash="PAOVQBkCnmWlXeX57EKkVrWpu98RN63Y6R0n2xv/zATdYPHgHxsR09tpyBN9Ko0Eycc6fAstYSCDZ1VJ81dghRzuRPApY9pAdJynKGXAaaIkG5RmD8D7ripNlAVFtv4G8kzUYuxANeD/8Up3zKzYfRzVpC+wEccCBaY08nZq+l0=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ctotl%40soton.ac.uk%7C614ba766948d4fce74c308d6fa396d55%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Hbgj6wqxoxz4s3Vw4aA3NnJBpbBE6kdkeB5v3%2Bo3Mjg%3D&amp;reserved=0</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7C0065e9f109134c9c6ca008d6fa3b80c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=AsmlUkpPLmT%2Bb6K6UPI1C2EfIMHjWEBjzfYIlj1oyZo%3D&reserved=0" originalsrc="http://wiki.eprints.org/" shash="CHicfETHYW5raE4H2kNPZnR4zU97/aljHVigYfc9R/YTEJAF6HmrlvVNzC68WLj7mliNRnHDpp1PKk07jcPqotusyZTJ7kyxodTffRBDqhLrflcbc3Vh/UtSMEit25JbCi2+DTT3uSSoRuIj3aUiDvgVndJR+DuWutajbXfUY8U=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ctotl%40soton.ac.uk%7C614ba766948d4fce74c308d6fa396d55%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=HefXTLMAyK0aubXj8WHD1equTdFS5mga8krd2sBuZDQ%3D&amp;reserved=0</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7C0065e9f109134c9c6ca008d6fa3b80c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=mn9jtlxzVzKuKGpO%2Bbll2jqV2Q0zR5%2FtoJlCKseMrQA%3D&reserved=0" originalsrc="http://forum.eprints.org/" shash="wjNqm2JhCZYjNR/4VAz0tQHtSP1zUnEO2hRUh4ThhIsbZReg3VVQQpRFzgRFfPM8CDmNOSgQ+Kxwcp1YoQvr8hiGYypcauvB0U4F3NOP11duZQePtnTlLcNe4tCsmxr3r3Fp99mUfd5C63sb9Z7wJPCZ5O13ttcy94MhOfrTi6c=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ctotl%40soton.ac.uk%7C614ba766948d4fce74c308d6fa396d55%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=jRUdxHxx3O5e%2FyWhqWyUvnduuLNE6H8HOtAkPtgP8hU%3D&amp;reserved=0</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Christopher Gutteridge <a class="moz-txt-link-rfc2396E" href="mailto:totl@soton.ac.uk"><totl@soton.ac.uk></a>
You should read our team blog at <a class="moz-txt-link-freetext" href="http://blog.soton.ac.uk/webteam/">http://blog.soton.ac.uk/webteam/</a></pre>
</body>
</html>