Changes between Initial Version and Version 2 of Ticket #1398
- Timestamp:
- 09/22/10 10:53:44 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1398
- Property Owner set to
-
TabularUnified Ticket #1398 – Description
initial v2 1 1.> Used DbEnv.get_DB_ENV and DbTxn.get_DB_TXN to get the underlying DB_ENV and DB_TXN structure and used that with theDbXml public interface.1 1.> Used !DbEnv.get_DB_ENV and !DbTxn.get_DB_TXN to get the underlying DB_ENV and DB_TXN structure and used that with the !DbXml public interface. 2 2 3 3 Changed 4 {{{ environment->GetXmlManager().createTransaction(m_dbTxn))); }}} to {{{environment->GetXmlManager().createTransaction(m_dbTxn->get_DB_TXN()))); }}} and {{{ m_xmlMan = XmlManager(&m_dbEnv, DBXML_ALLOW_EXTERNAL_ACCESS); to m_xmlMan = XmlManager(m_dbEnv.get_DB_ENV(), DBXML_ALLOW_EXTERNAL_ACCESS); }}} . 4 {{{ 5 environment->GetXmlManager().createTransaction(m_dbTxn))); 6 }}} 7 to 8 {{{ 9 environment->GetXmlManager().createTransaction(m_dbTxn->get_DB_TXN()))); 10 }}} 11 and 12 {{{ 13 m_xmlMan = XmlManager(&m_dbEnv, DBXML_ALLOW_EXTERNAL_ACCESS); 14 }}} 15 to 16 {{{ 17 m_xmlMan = XmlManager(m_dbEnv.get_DB_ENV(), DBXML_ALLOW_EXTERNAL_ACCESS); 18 }}} 5 19 6 2.>Added a function DbXml::getContentAsDOM(const XmlValue &value). and used the constructor of the XmlValue to get anXmlValue handle on xmlDoc. The function is modified from an example in dbxml/example folder. Its a hack and I plan to make a proper class pretty soon.20 2.>Added a function DbXml::getContentAsDOM(const !XmlValue &value). and used the constructor of the !XmlValue to get an !XmlValue handle on xmlDoc. The function is modified from an example in dbxml/example folder. Its a hack and I plan to make a proper class pretty soon. 7 21 8 22 Created 2 files xercesDomTranslator.h and xercesDomTranslator.cpp. These are trivially modified forms of the file of the same name in dbxml example folder. However the function is trivial and I would make a class to encapsulate it, after I finish compilation. 9 23 The function defined is 10 {{{ XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *getContentAsDOM(const DbXml::XmlValue &value); }}}It requires an Xmlvalue and this is constructed by the constructor of the XmlValue class from the XmlDocument passed to it. 24 {{{ 25 XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *getContentAsDOM(const DbXml::XmlValue &value); 26 }}} 27 It requires an !XmlValue and this is constructed by the constructor of the XmlValue class from the XmlDocument passed to it. 11 28 12 29 3.>Since XmlModify has been removed, we can use a simple Xquery Update to delete records. For example where our query was