Weird behavior reading attributes
-
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é.
-
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é.
Michael Dunn wrote: Any ideas on WTF is going on here? Simple: they are insane. Crivo Automated Credit Assessment
-
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é.
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. ...
-
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é.
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é.