Re: [bdbxml] help with perl xml

George Feinberg <[email protected]>
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
On Jun 22, 2005, at 12:45 AM, B Hanumahally, Shivakumar (Shivakumar) 
** CTR ** wrote:

> I installed bdb xml with perl.  After successful build and install  
> (with
> --enable-perl option)on Linux, I am trying to run the following  
> example from
> xml.com

The examples appear to be for the 1.x release series.  The API for
2.x has changed.  There are Perl examples shipped with the
code, in src/perl/examples/gettingStarted.  Give those
a try.

Regards,

George

>
> #!/usr/bin/perl
> use Sleepycat::DbXml 'simple';
>
> $xml_contenet = "<section><title>Testing</title></section>";
> $db_name = "/etc/xml/db";
>
> $container = new XmlContainer($dbname);
> $container->open(Db::DBCREATE);
> $document = new XmlDocument;
> $document->setContent($xml_content);
> $container->putDocument($document);
> $container->close();
>
> Its throwing up a error "XmlContainer::new is not a valid DbXml  
> macro at
> ./test1.pl line 8"
>
> The C++ APIs work fine.  Is there some extra configuration I need  
> to setup
> ?\
>


------------------------------------------
To remove yourself from this list, send an
email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.