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. XML / XSL
  4. (XML4C) DOMParser constructor crash

(XML4C) DOMParser constructor crash

Scheduled Pinned Locked Moved XML / XSL
htmlcomjsonquestion
5 Posts 2 Posters 3 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.
  • R Offline
    R Offline
    Ravi Bhavnani
    wrote on last edited by
    #1

    Do you know what would cause the construction of a Xerxes DOM parser to die? It seems like this should be valid, but I'm obviously missing something.

    // DOM newbie test
    DOMParser* pDomParser = new DOMParser(); // crashes
    ASSERT (pDomParser != NULL);
    delete pDomParser;

    Are we required to derive from DOMParser and override certain methods? Btw, I'm using a prebuilt binary of the XML4C 4.0.0 implementation. A ptr to the API docs would also be much appreciated. Thanks! /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

    M 1 Reply Last reply
    0
    • R Ravi Bhavnani

      Do you know what would cause the construction of a Xerxes DOM parser to die? It seems like this should be valid, but I'm obviously missing something.

      // DOM newbie test
      DOMParser* pDomParser = new DOMParser(); // crashes
      ASSERT (pDomParser != NULL);
      delete pDomParser;

      Are we required to derive from DOMParser and override certain methods? Btw, I'm using a prebuilt binary of the XML4C 4.0.0 implementation. A ptr to the API docs would also be much appreciated. Thanks! /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

      M Offline
      M Offline
      Michael A Barnhart
      wrote on last edited by
      #2

      Are you calling the Initialize routine? XMLPlatformUtils::Initialize(); What version are you using if not? "We are what we repeatedly do. excellence, then, is not an act, but a habit." Aristotle

      R 1 Reply Last reply
      0
      • M Michael A Barnhart

        Are you calling the Initialize routine? XMLPlatformUtils::Initialize(); What version are you using if not? "We are what we repeatedly do. excellence, then, is not an act, but a habit." Aristotle

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        Thanks Michael, that did the trick! I ended up with a purported memory leak, but the Xerxes docs say the diagnostic overagressive and can be ignored. I then switched from XML4C V4 to V5 and encountered a new problem: When I build my (simple) Xerces test project, VC++ complains that DOMDocument (present in several Xerces header files) is an ambiguous symbol. The clash seems to occur as a result of the Platform SDK (Aug 2002) being installed on my system. Do you know how I get around this problem? Thanks, /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

        M 1 Reply Last reply
        0
        • R Ravi Bhavnani

          Thanks Michael, that did the trick! I ended up with a purported memory leak, but the Xerxes docs say the diagnostic overagressive and can be ignored. I then switched from XML4C V4 to V5 and encountered a new problem: When I build my (simple) Xerces test project, VC++ complains that DOMDocument (present in several Xerces header files) is an ambiguous symbol. The clash seems to occur as a result of the Platform SDK (Aug 2002) being installed on my system. Do you know how I get around this problem? Thanks, /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

          M Offline
          M Offline
          Michael A Barnhart
          wrote on last edited by
          #4

          I actually have not used the Xerces C since last Jan, so I am afraid no. Have you downloaded the current release. There was an update the end of August so maybe it was addressed with that revision. "We are what we repeatedly do. excellence, then, is not an act, but a habit." Aristotle

          R 1 Reply Last reply
          0
          • M Michael A Barnhart

            I actually have not used the Xerces C since last Jan, so I am afraid no. Have you downloaded the current release. There was an update the end of August so maybe it was addressed with that revision. "We are what we repeatedly do. excellence, then, is not an act, but a habit." Aristotle

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            Yes, I'm using the latest release. I've switched back to version 4 to get around the symbol clash. Thanks for your help! /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

            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