Menu

How to access "label = value"

2004-05-07
2004-05-07
  • Tawn Kramer

    Tawn Kramer - 2004-05-07

    I've seen a lot of examples in the documentation and on this forum. But none seem to show XML that uses the "name=Joe" form. I can't form my query of the document to access this information.

    an example might help:

    how would I get the value of "ProjectType" from

    <?xml version="1.0" encoding="Windows-1252"?>
    <VisualStudioProject
        ProjectType="Visual C++"
        Version="7.10"
        Name="DepMan"
        ProjectGUID="{A71C106F-B6B0-43A7-B1F7-FCE21F00319C}"
        Keyword="MFCProj">
    </VisualStudioProject>

     
    • B Sizer

      B Sizer - 2004-05-07

      ProjectType is an attribute, so look up the Attribute() functions. I believe there's one for strings and one for integers.

       
    • Tawn Kramer

      Tawn Kramer - 2004-05-07

      That makes sense, and works as well.  :-)

      Thanks so much for the prompt reply. I was beginning to think I had to wade into MSXML with the million line header file interface. What a joke. This works great and is very simple to use!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.