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. [HELP] I got error message, when I tried to parse XML on PocketPC

[HELP] I got error message, when I tried to parse XML on PocketPC

Scheduled Pinned Locked Moved XML / XSL
helpcomxmltutorialquestion
5 Posts 2 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.
  • U Offline
    U Offline
    User 2080588
    wrote on last edited by
    #1

    I writen a application on Microsoft Mobile5.0 Pocket PC. Parts of my code as below. I create my own ISAXXMLContentHandler implementation class, and it used to handle my XML file ("\ori.xml"). I initiate XML reader as below. And my XML content handler class's constructor and destructor as below. However, when I call XML reader's parseURL() function in first picture, I got an error message as below. The error message's detail as below. I don't know what happen? and I don't know how to solve it? Does anyone can help me to solve it? Alger, Lin

    P 1 Reply Last reply
    0
    • U User 2080588

      I writen a application on Microsoft Mobile5.0 Pocket PC. Parts of my code as below. I create my own ISAXXMLContentHandler implementation class, and it used to handle my XML file ("\ori.xml"). I initiate XML reader as below. And my XML content handler class's constructor and destructor as below. However, when I call XML reader's parseURL() function in first picture, I got an error message as below. The error message's detail as below. I don't know what happen? and I don't know how to solve it? Does anyone can help me to solve it? Alger, Lin

      P Offline
      P Offline
      Philip Fitzsimons
      wrote on last edited by
      #2

      you need to show us the exception information - scroll err2.jpg down a bit...


      "When the only tool you have is a hammer, a sore thumb you will have."

      U 1 Reply Last reply
      0
      • P Philip Fitzsimons

        you need to show us the exception information - scroll err2.jpg down a bit...


        "When the only tool you have is a hammer, a sore thumb you will have."

        U Offline
        U Offline
        User 2080588
        wrote on last edited by
        #3

        I got frames of error messages as below. http://home.pchome.com.tw/funny/alger_lin/Codes/err.JPG[^]

        P 1 Reply Last reply
        0
        • U User 2080588

          I got frames of error messages as below. http://home.pchome.com.tw/funny/alger_lin/Codes/err.JPG[^]

          P Offline
          P Offline
          Philip Fitzsimons
          wrote on last edited by
          #4

          can you not copy the error text to the clipboard? we need the text from: Exception Information =====================


          "When the only tool you have is a hammer, a sore thumb you will have."

          U 1 Reply Last reply
          0
          • P Philip Fitzsimons

            can you not copy the error text to the clipboard? we need the text from: Exception Information =====================


            "When the only tool you have is a hammer, a sore thumb you will have."

            U Offline
            U Offline
            User 2080588
            wrote on last edited by
            #5

            Thanks for your attention, I found the reason of this problem yesterday. It's not a technical issue, it just because I made a stupid mistake :~ As the code below, I invoke InitReader() function to create and initiate my XML reader. I pass a pointer of ISAXXMLReader into this function, this variable is xReader_Ori. http://home.pchome.com.tw/funny/alger_lin/Codes/code1.JPG[^] And in the InitReader(), I pass the inputed ISAXXMLReader pointer into CoCreateInstance() to receive the instance of ISAXXMLReader. However, the xReader parameter is a copy of xReader_Ori, the xReader was represented the ISAXXMLReader's instance after invoke CoCreateInstance(), but the xReader_Ori was not be modified at the same time. So, it cause some error when I called xReader_Ori's parseURL() function, because it's nothing :doh: http://home.pchome.com.tw/funny/alger_lin/Codes/code2.JPG[^] Now, I modified my InitReader()'s definition, I define it as HRESULE InitReader(ISAXXMLReader*& xReader). And it work smoothly now :laugh:

            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