Perl and BaseX question (add document to existing db)
MI'm trying to add a document to an existing dababase xmark. Any idea on how to do this with Perl?
$session->execute("create db database"); (would like the existing
database xmark in here)
print $session->info()."\n";
# add document
$session->add("world/World.xml");
Thanks
Mark Shortt
LQLiam R E Quin30 May 2013 19:56 # Quoted text · m4058 at aol.com · 6 lines
On Thu, 2013-05-30 at 11:05 -0400, m4058 at aol.com wrote:
> I'm trying to add a document to an existing dababase xmark. Any idea on
> how to do this with Perl?
>
> $session->execute("create db database"); (would like the existing
> database xmark in here)
then open the existing datbase instead of creating it.
$session->execute("open xmark");
or "open database" if you could your database "database".
Then you can use "add".
Liam
--
Liam Quin - XML Activity Lead, W3C,
http://www.w3.org/People/Quin/ Pictures from old books:
http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
⚡Generated with XQuery