Changes between Initial Version and Version 2 of Ticket #1398


Ignore:
Timestamp:
Sep 22, 2010, 10:53:44 AM (14 years ago)
Author:
brucedechant
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1398

    • Property Owner set to brucedechant
  • 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 the DbXml public interface.
     11.> 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.
    22
    33Changed
    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{{{
     5environment->GetXmlManager().createTransaction(m_dbTxn)));
     6}}}
     7to
     8{{{
     9environment->GetXmlManager().createTransaction(m_dbTxn->get_DB_TXN())));
     10}}}
     11and
     12{{{
     13m_xmlMan = XmlManager(&m_dbEnv, DBXML_ALLOW_EXTERNAL_ACCESS);
     14}}}
     15to
     16{{{
     17m_xmlMan = XmlManager(m_dbEnv.get_DB_ENV(), DBXML_ALLOW_EXTERNAL_ACCESS);
     18}}}
    519
    6 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.
     202.>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.
    721
    822Created 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.
    923The 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{{{
     25XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *getContentAsDOM(const DbXml::XmlValue &value);
     26}}}
     27It requires an !XmlValue and this is constructed by the constructor of the XmlValue class from the XmlDocument passed to it.
    1128
    12293.>Since XmlModify has been removed, we can use a simple Xquery Update to delete records. For example where our query was