<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：Berkeley DB Xml 入门系列之一： 简介与&#8221;query&#8221;示例程序详解</title>
	<atom:link href="http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/</link>
	<description>Oracle Berkeley DB 中国研发团队的博客</description>
	<lastBuildDate>Thu, 15 Dec 2011 10:53:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-535</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Fri, 27 Nov 2009 02:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-535</guid>
		<description>hi, 回复可能会屏蔽一些符号， 麻烦你把问题和代码发到 ying.cai在oracle.com（在替换成@）.</description>
		<content:encoded><![CDATA[<p>hi, 回复可能会屏蔽一些符号， 麻烦你把问题和代码发到 ying.cai在oracle.com（在替换成@）.</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小乐乐</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-534</link>
		<dc:creator>小乐乐</dc:creator>
		<pubDate>Fri, 27 Nov 2009 02:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-534</guid>
		<description>请问你们有没有邮箱可以让我把文件发过去？这样可以更好的说明问题，谢谢！</description>
		<content:encoded><![CDATA[<p>请问你们有没有邮箱可以让我把文件发过去？这样可以更好的说明问题，谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小乐乐</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-533</link>
		<dc:creator>小乐乐</dc:creator>
		<pubDate>Fri, 27 Nov 2009 02:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-533</guid>
		<description>请问你们有没有邮箱可以让我把文件发过去？这样可以更好的说明问题，谢谢</description>
		<content:encoded><![CDATA[<p>请问你们有没有邮箱可以让我把文件发过去？这样可以更好的说明问题，谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小乐乐</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-532</link>
		<dc:creator>小乐乐</dc:creator>
		<pubDate>Fri, 27 Nov 2009 02:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-532</guid>
		<description>a
a
a
	a
		a
			aEnterprise Architect
			a2.5
		a
	a
	a
		a
			a
				a
				a
					a
						a
						a			
					a
					a
						a
							a
								a
									a
										a
										a
									a
								a
								a
									a
										a
										a
									a
								a
							a
							a
								a
									a
										a
											a
												a
												a
												a
											a
										a
										a
											a
												a
												a	
											a
										a
									a
								a
							a
						a
					a
				a
			a
		a
		a
			a
				a
				a
			a
			a
				a
				a
			a
		a
	a
	a
	a
a

因为上面的xml是乱码，所以我在每行前面加了a，不过格式还是很乱，请问你们有没有邮箱可以让我把文件发过去？这样可以更好的说明问题，谢谢</description>
		<content:encoded><![CDATA[<p>a<br />
a<br />
a<br />
	a<br />
		a<br />
			aEnterprise Architect<br />
			a2.5<br />
		a<br />
	a<br />
	a<br />
		a<br />
			a<br />
				a<br />
				a<br />
					a<br />
						a<br />
						a<br />
					a<br />
					a<br />
						a<br />
							a<br />
								a<br />
									a<br />
										a<br />
										a<br />
									a<br />
								a<br />
								a<br />
									a<br />
										a<br />
										a<br />
									a<br />
								a<br />
							a<br />
							a<br />
								a<br />
									a<br />
										a<br />
											a<br />
												a<br />
												a<br />
												a<br />
											a<br />
										a<br />
										a<br />
											a<br />
												a<br />
												a<br />
											a<br />
										a<br />
									a<br />
								a<br />
							a<br />
						a<br />
					a<br />
				a<br />
			a<br />
		a<br />
		a<br />
			a<br />
				a<br />
				a<br />
			a<br />
			a<br />
				a<br />
				a<br />
			a<br />
		a<br />
	a<br />
	a<br />
	a<br />
a</p>
<p>因为上面的xml是乱码，所以我在每行前面加了a，不过格式还是很乱，请问你们有没有邮箱可以让我把文件发过去？这样可以更好的说明问题，谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小乐乐</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-530</link>
		<dc:creator>小乐乐</dc:creator>
		<pubDate>Thu, 26 Nov 2009 07:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-530</guid>
		<description>似乎我发的文件变成乱了，我想请问，用BDB XML解析XMI文件应该怎么处理呢，例如输出它的所有节点，我用如下的代码：
#include &quot;stdafx.h&quot;


#include    
#include    
  
using namespace DbXml;  
using namespace std;
  

int main(int argc, char **argv)   
{ 
	
		// Get a manager object.
		XmlManager myManager;
	// Open a container
	XmlContainer myContainer =
		myManager.openContainer(&quot;coffee-tea.dbxml&quot;);
	// Get a query context
	XmlQueryContext context = myManager.createQueryContext();
	// Declare a namespace
	//context.setNamespace(&quot;fruits&quot;, &quot;http://groceryItem.dbxml/fruits&quot;);
	// Declare the query string. Find all the product documents
	// in the fruits namespace.
	std::string myQuery = &quot;collection(&#039;coffee-tea.dbxml&#039;)//*&quot;;
	// Perform the query.
	XmlResults results = myManager.query(myQuery, context);
	// Show the size of the result set
	std::cout &lt;&lt; &quot;Found &quot; &lt;&lt; results.size() &lt;&lt; &quot; documents for query: &#039;&quot;
		&lt;&lt; myQuery &lt;&lt; &quot;&#039;&quot; &lt;&lt; std::endl;
	// Display the result set
	XmlValue value;
	while (results.next(value)) {
		XmlDocument theDoc = value.asDocument();
		std::string docName = theDoc.getName();
		std::string docString = value.asString();
		std::cout &lt;&lt; &quot;Document &quot; &lt;&lt; docName &lt;&lt; &quot;:&quot; &lt;&lt; std::endl;
		std::cout &lt;&lt; docString &lt;&lt; std::endl;
		std::cout &lt;&lt; &quot;===============================\n&quot; &lt;&gt;a;
	return(0);

} 
输出的结果是0，我的开发平台是VS2005，语言是C++</description>
		<content:encoded><![CDATA[<p>似乎我发的文件变成乱了，我想请问，用BDB XML解析XMI文件应该怎么处理呢，例如输出它的所有节点，我用如下的代码：<br />
#include &#8220;stdafx.h&#8221;</p>
<p>#include<br />
#include    </p>
<p>using namespace DbXml;<br />
using namespace std;</p>
<p>int main(int argc, char **argv)<br />
{ </p>
<p>		// Get a manager object.<br />
		XmlManager myManager;<br />
	// Open a container<br />
	XmlContainer myContainer =<br />
		myManager.openContainer(&#8220;coffee-tea.dbxml&#8221;);<br />
	// Get a query context<br />
	XmlQueryContext context = myManager.createQueryContext();<br />
	// Declare a namespace<br />
	//context.setNamespace(&#8220;fruits&#8221;, &#8220;http://groceryItem.dbxml/fruits&#8221;);<br />
	// Declare the query string. Find all the product documents<br />
	// in the fruits namespace.<br />
	std::string myQuery = &#8220;collection(&#8216;coffee-tea.dbxml&#8217;)//*&#8221;;<br />
	// Perform the query.<br />
	XmlResults results = myManager.query(myQuery, context);<br />
	// Show the size of the result set<br />
	std::cout &lt;&lt; &#8220;Found &#8221; &lt;&lt; results.size() &lt;&lt; &#8221; documents for query: &#8216;&#8221;<br />
		&lt;&lt; myQuery &lt;&lt; &#8220;&#8216;&#8221; &lt;&lt; std::endl;<br />
	// Display the result set<br />
	XmlValue value;<br />
	while (results.next(value)) {<br />
		XmlDocument theDoc = value.asDocument();<br />
		std::string docName = theDoc.getName();<br />
		std::string docString = value.asString();<br />
		std::cout &lt;&lt; &#8220;Document &#8221; &lt;&lt; docName &lt;&lt; &#8220;:&#8221; &lt;&lt; std::endl;<br />
		std::cout &lt;&lt; docString &lt;&lt; std::endl;<br />
		std::cout &lt;&lt; &#8220;===============================\n&#8221; &lt;&gt;a;<br />
	return(0);</p>
<p>}<br />
输出的结果是0，我的开发平台是VS2005，语言是C++</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小乐乐</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-529</link>
		<dc:creator>小乐乐</dc:creator>
		<pubDate>Thu, 26 Nov 2009 07:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-529</guid>
		<description>您好：下面是一个XML文件
 
   
- 
- 
- 
  Enterprise Architect 
  2.5 
  
  
- 
- 
- 
   
- 
- 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
- 
- 
- 
- 
- 
   
   
   
   
   
   
   
   
  &lt;UML:TaggedValue tag=&quot;gentype&quot; value=&quot;&quot; /&gt; 
   
   
   
   
   
   
   
   
   
   
  
  
- 
- 
   
   
   
   
   
   
   
   
  &lt;UML:TaggedValue tag=&quot;gentype&quot; value=&quot;&quot; /&gt; 
   
   
   
   
   
   
   
   
   
   
   
  &lt;UML:TaggedValue tag=&quot;$ea_xref_property&quot; value=&quot;$XREFPROP=$XID={E18BACE2-31CC-4c19-901C-099455A08DF1}$XID;$NAM=Partitions$NAM;$TYP=element property$TYP;$VIS=Public$VIS;$PAR=0$PAR;$DES=@PAR;Name=state3;Size=40;@ENDPAR;@PAR;Name=state2;Size=40;@ENDPAR;@PAR;Name=state1;Size=40;@ENDPAR;$DES;$CLT={43BF6668-13D5-4a25-9CCE-4D553367A870}$CLT;$SUP=$SUP;$ENDXREF;&quot; /&gt; 
  
  
  
- 
- 
- 
- 
- 
   
   
   Destination&quot; /&gt; 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
  
  
  
  
  
  
  
  
  
- 
- 
   
   
   
   
   
   
   
   
   
   
   
  
- 
   
   
   
  
  
  
   
   
  </description>
		<content:encoded><![CDATA[<p>您好：下面是一个XML文件</p>
<p>-<br />
-<br />
-<br />
  Enterprise Architect<br />
  2.5 </p>
<p>-<br />
-<br />
- </p>
<p>-<br />
- </p>
<p>-<br />
-<br />
-<br />
-<br />
- </p>
<p>  &lt;UML:TaggedValue tag=&#8221;gentype&#8221; value=&#8221;" /&gt; </p>
<p>-<br />
- </p>
<p>  &lt;UML:TaggedValue tag=&#8221;gentype&#8221; value=&#8221;" /&gt; </p>
<p>  &lt;UML:TaggedValue tag=&#8221;$ea_xref_property&#8221; value=&#8221;$XREFPROP=$XID={E18BACE2-31CC-4c19-901C-099455A08DF1}$XID;$NAM=Partitions$NAM;$TYP=element property$TYP;$VIS=Public$VIS;$PAR=0$PAR;$DES=@PAR;Name=state3;Size=40;@ENDPAR;@PAR;Name=state2;Size=40;@ENDPAR;@PAR;Name=state1;Size=40;@ENDPAR;$DES;$CLT={43BF6668-13D5-4a25-9CCE-4D553367A870}$CLT;$SUP=$SUP;$ENDXREF;&#8221; /&gt; </p>
<p>-<br />
-<br />
-<br />
-<br />
- </p>
<p>   Destination&#8221; /&gt; </p>
<p>-<br />
- </p>
<p>-</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-526</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Wed, 25 Nov 2009 02:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-526</guid>
		<description>只要把编译出来的dll加到系统的path环境变量里面就可以了。如果是用VS编程的话，在项目设置里面可以添加lib。</description>
		<content:encoded><![CDATA[<p>只要把编译出来的dll加到系统的path环境变量里面就可以了。如果是用VS编程的话，在项目设置里面可以添加lib。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：savez</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-523</link>
		<dc:creator>savez</dc:creator>
		<pubDate>Tue, 24 Nov 2009 12:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-523</guid>
		<description>你好，我在windows下编译成功了，我想在win下进行测试，他那几个dll和lib改如何添加呀，还望老师赐教！</description>
		<content:encoded><![CDATA[<p>你好，我在windows下编译成功了，我想在win下进行测试，他那几个dll和lib改如何添加呀，还望老师赐教！</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-188</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Thu, 03 Sep 2009 09:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-188</guid>
		<description>&lt;a href=&quot;#comment-185&quot; rel=&quot;nofollow&quot;&gt;@天门冬&lt;/a&gt; 
不知道你说的key是什么意思。虽然Berkeley DB Xml是建立在Berkeley DB上的，但是对Xml文档的存储不是简单的key和value形式。</description>
		<content:encoded><![CDATA[<p><a href="#comment-185" rel="nofollow">@天门冬</a><br />
不知道你说的key是什么意思。虽然Berkeley DB Xml是建立在Berkeley DB上的，但是对Xml文档的存储不是简单的key和value形式。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-%e5%85%a5%e9%97%a8%e7%b3%bb%e5%88%97%e4%b9%8b%e4%b8%80%ef%bc%9a-%e7%ae%80%e4%bb%8b%e4%b8%8equery%e7%a4%ba%e4%be%8b%e7%a8%8b%e5%ba%8f%e8%af%a6%e8%a7%a3/comment-page-1/#comment-187</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Thu, 03 Sep 2009 09:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=374#comment-187</guid>
		<description>&lt;a href=&quot;#comment-183&quot; rel=&quot;nofollow&quot;&gt;@天门冬&lt;/a&gt; 
Container是document的集合，不同类型的文档可以放在同一个container中，这取决于应用的需求。</description>
		<content:encoded><![CDATA[<p><a href="#comment-183" rel="nofollow">@天门冬</a><br />
Container是document的集合，不同类型的文档可以放在同一个container中，这取决于应用的需求。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
Դ
