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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. First Time COM user w/ MSXML

First Time COM user w/ MSXML

Scheduled Pinned Locked Moved COM
tutorialc++htmlcomgraphics
1 Posts 1 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.
  • E Offline
    E Offline
    electronicman_x
    wrote on last edited by
    #1

    I'm trying to utilize Microsoft's MS XML 4.0 parser to obtain some data from an XML file. I'm using C++ so im I'm having a bit of trouble writing a simple console app that can find an XML node of my choice and retrieve data associated with it. I am trying to utilize the XML DOM Method GetAttribute. (as seen on MSDN @ http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xml\_mth\_dg\_5rfo.asp I've worked through another example tutorial which creates a very simple app that loads the whole XML document and prints it to screen. I have no trouble with that but when I tried to utilize the MSDN example for GetAttribute, the code is riddled with problems and I have been unable to over come them. I'm sure if i saw a simple app that did what i was looking for i would understand how to use this better, but i have looked all over for such an animal and they are either way too big or way to simple to get anything from them. I am also having some troubles fully understanding _variant_t and _bstr_t. If anyone can provide some advice or a very simple example (like something that can read 10 line xml file and find one tag in it and print its data), I would be grateful. PS: My problem may stem from: GetAttribute code: MSDN says it takes two parameters but it will not compile that way. SetAttribute appears to take similar parameters and it will compile with 2 parameters. Thanks Jeff Rothenberg Project Engineer Vector CANtech, Inc.

    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