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. Weird behavior reading attributes

Weird behavior reading attributes

Scheduled Pinned Locked Moved XML / XSL
comxmlhelpquestion
4 Posts 3 Posters 17 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.
  • M Offline
    M Offline
    Michael Dunn
    wrote on last edited by
    #1

    Quick backstory: I have an app that has a customizable menu, controlled by an XML file. The format looks like:

    <menuitem id="foo" url="blah" icon="somefile.ico" />

    The weirdness is, two of my partners are seeing a bug where if the same icon value is in multiple <menuitem> tags, those (and only those) attributes can't be read. MSXML returns an empty string instead. I cannot reproduce this myself. Any ideas on WTF is going on here? --Mike-- Rollin' in my 5.0 With the rag-top down so my hair can blow. My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan and Jamie Salé.

    D M M 3 Replies Last reply
    0
    • M Michael Dunn

      Quick backstory: I have an app that has a customizable menu, controlled by an XML file. The format looks like:

      <menuitem id="foo" url="blah" icon="somefile.ico" />

      The weirdness is, two of my partners are seeing a bug where if the same icon value is in multiple <menuitem> tags, those (and only those) attributes can't be read. MSXML returns an empty string instead. I cannot reproduce this myself. Any ideas on WTF is going on here? --Mike-- Rollin' in my 5.0 With the rag-top down so my hair can blow. My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan and Jamie Salé.

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Michael Dunn wrote: Any ideas on WTF is going on here? Simple: they are insane. Crivo Automated Credit Assessment

      1 Reply Last reply
      0
      • M Michael Dunn

        Quick backstory: I have an app that has a customizable menu, controlled by an XML file. The format looks like:

        <menuitem id="foo" url="blah" icon="somefile.ico" />

        The weirdness is, two of my partners are seeing a bug where if the same icon value is in multiple <menuitem> tags, those (and only those) attributes can't be read. MSXML returns an empty string instead. I cannot reproduce this myself. Any ideas on WTF is going on here? --Mike-- Rollin' in my 5.0 With the rag-top down so my hair can blow. My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan and Jamie Salé.

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

        I have a very similar structure and have never had any problems like you describe. As far as the XML parsing goes you are saying if the text field for a specific attribute is repeated you can only read the first occurance. To me this sounds more like either the XML is not quite formed right but I would think you would notice not steping through the elements correctly, so doubtful. Or it is not in the parsing but the calling code. Sorry for asking but is it really the same code as on your machine? Try reading it in with some of the samples apps here and see if they behave the same. Good ideas are not adopted automatically. They must be driven into practice with courageous patients. -Admiral Rickover. ...

        1 Reply Last reply
        0
        • M Michael Dunn

          Quick backstory: I have an app that has a customizable menu, controlled by an XML file. The format looks like:

          <menuitem id="foo" url="blah" icon="somefile.ico" />

          The weirdness is, two of my partners are seeing a bug where if the same icon value is in multiple <menuitem> tags, those (and only those) attributes can't be read. MSXML returns an empty string instead. I cannot reproduce this myself. Any ideas on WTF is going on here? --Mike-- Rollin' in my 5.0 With the rag-top down so my hair can blow. My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan and Jamie Salé.

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          The Great Erik T. clued me in to IXMLDOMDocument::put_async(). Once I called that with VARIANT_FALSE everything magically worked. :) --Mike-- Rollin' in my 5.0 With the rag-top down so my hair can blow. My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan and Jamie Salé.

          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