|
|
|
|
|
|
| Author |
Message |
George *nix forums Guru Wannabe
Joined: 26 Feb 2005
Posts: 198
|
Posted: Fri Mar 04, 2005 7:06 pm Post subject:
Re: Whole document vs. node values
|
|
|
| Quote: | an InputStream or a string. It seems the only way to do this is as
follows:
value.asDocument().getContentAsString();
|
Yes, give or take your language interface. If the container
is whole-document storage, there is no parsing involved
in returning the content. However, there may have been parsing
involved in query execution. All but the simplest queries will
parse the document (in whole-doc) during execution.
If you have a very specific index you know will target the
correct document(s), consider the XmlContainer::lookupIndex()
interface.
The best way to ensure whole-doc containers is to
be explicit in what type of container you want in the
XmlManager::createContainer() interface.
Once a container is created, its type cannot change.
Regards,
George
Sleepycat Software |
|
| Back to top |
|
 |
JPM *nix forums beginner
Joined: 03 Mar 2005
Posts: 1
|
Posted: Thu Mar 03, 2005 9:59 pm Post subject:
Whole document vs. node values
|
|
|
I want to deal with whole documents exclusively. When I fetch an
XmlValue from a result set I need to get the entire document as either
an InputStream or a string. It seems the only way to do this is as
follows:
value.asDocument().getContentAsString();
Is this an efficient way of getting the whole document? Is it parsed by
the asDocument and then serialized back out by the
getContentAsString()? This does not seem to be the case from what I saw
poking around the C++ code. I would just like a little confirmation
that I am doing this the best way. Also am I best off setting
nodeContainer to false if I want to deal exclusivly with whole
documents?
Thanks |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 4:06 am | All times are GMT
|
|
Loans | Credit Reports | Rapidshare eBooks Download | Debt Consolidation | Bankruptcy
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|