dbTalk Databases Forums  

A newbie question: how to put a ready XML document into a container

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss A newbie question: how to put a ready XML document into a container in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sam Sun
 
Posts: n/a

Default A newbie question: how to put a ready XML document into a container - 11-17-2005 , 12:26 AM






Hi, I am at a loss how to put a ready whole XML document (created by
Stylus Studio) into a container.

Sleepycat says "If you are using an XmlDocument object to add the
document, use XmlDocument::setName() to set the document's name.
Otherwise, you can set the name directly on the call to
XmlContainer:utDocument(). "

Could someone give an example?

Many thanks.
Sam


Reply With Quote
  #2  
Old   
sandesh
 
Posts: n/a

Default Re: A newbie question: how to put a ready XML document into a container - 11-17-2005 , 12:42 AM






Hi Sam,
It is pretty simple and straight forward.
You can do some thing like
myContainer.putDocument(docName, theStream, updateContext);
or
myContainer.putDocument(docName, docStringContent, updateContext);

Regards
meetpai (AT) gmail (DOT) com


Reply With Quote
  #3  
Old   
Sam Sun
 
Posts: n/a

Default Re: A newbie question: how to put a ready XML document into a container - 11-17-2005 , 01:09 AM



Thanks.

If the current container is Color.dbxml, and my XML document is
red.xml, what is the formula like?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.