Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Is there any way to execute XQuery through MFC or C++ (This question Previously left with no answer)

Is there any way to execute XQuery through MFC or C++ (This question Previously left with no answer)

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionxmltutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A Ms
    wrote on last edited by
    #1

    Hi, Is there any way to execute XQuery through MFC Code, I know How to use MSXML.DLL to load xml documents and navigate the XML document But I am looking for a method like ExecuteSQL("") to execute my XQuery statements? I am in need of knowing that But I can't find anything

    D 1 Reply Last reply
    0
    • A A Ms

      Hi, Is there any way to execute XQuery through MFC Code, I know How to use MSXML.DLL to load xml documents and navigate the XML document But I am looking for a method like ExecuteSQL("") to execute my XQuery statements? I am in need of knowing that But I can't find anything

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Amir_m wrote:

      Is there any way to execute XQuery through MFC Code...

      How would you do it outside of code?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      enhzflepE A 2 Replies Last reply
      0
      • D David Crow

        Amir_m wrote:

        Is there any way to execute XQuery through MFC Code...

        How would you do it outside of code?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        enhzflepE Offline
        enhzflepE Offline
        enhzflep
        wrote on last edited by
        #3

        With a rusty pipe, strangulation, starvation or torture. Pretty sure these are all outside of code (well in most countries anyway)

        T 1 Reply Last reply
        0
        • enhzflepE enhzflep

          With a rusty pipe, strangulation, starvation or torture. Pretty sure these are all outside of code (well in most countries anyway)

          T Offline
          T Offline
          Tim Craig
          wrote on last edited by
          #4

          Code of the Assassin? :laugh:

          You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

          1 Reply Last reply
          0
          • D David Crow

            Amir_m wrote:

            Is there any way to execute XQuery through MFC Code...

            How would you do it outside of code?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            A Offline
            A Offline
            A Ms
            wrote on last edited by
            #5

            I Think I could make my problem more clear by the following code:

            class CMyAppDlg : public CDialog
            {
            MSXML2::IXMLDOMDocumentPtr m_pXMLDoc;
            _RecordsetPtr m_pRs;//PRs is a ADO record set

            ....
            

            };

            CString fileName(_T("C:\test.xml"));
            m_pXMLDoc->load(fileName.AllocSysString());

            //so I am looking for a method like
            m_pRs m_pXMLDoc->ExecuteXQuery(_T("My XQuery Statement"));

            of course any other solution that gives me a record set of My XQuery will be useful too

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups