CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    1

    C++ getElementsByTagName method

    Currently trying to retrieve a particular element by using getElementsByTagName and having problems.

    However if I call it using the getElementsByTagName("*") get all option and list the elements -- hey presto the element I require is there....

    I am currently using MSXML4.0.

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="Measurement-style.xsl"?>

    <SA
    xmlns="x-schema:Measurement-schema.xml"
    xmlnst="urn:schemas-microsoft-comatatypes"
    BF="New"
    ID="0001"
    SID="Example System ID"
    OP="[auto]"
    ADT="1988-04-07T18:39:09-08:00"
    ADTS="1988-04-07 18:39:09"
    RDT="2000-05-09T18:39:09-08:00"
    RDTS="2000-05-09 18:39:09"
    REDTS="2000-04-09 06:39:09"
    IMP="0" >

    <PF>Just Some Text</PF>
    <PF>And some more</PF>
    <PF />
    <PF />
    <PF />
    <PF>Yet again more text</PF>

    <AC
    AT="VALUES1"
    AS="Done"
    SO="External" >

    <AR
    Key="Meas1"
    SN="MEAS1"
    299
    </AR>

    <AR
    Key="Meas2"
    SN="MEAS2"
    255
    </AR>


    </AC>

    <AC
    AT="VALUES2"
    AS="Done"
    SO="Internal" >

    <AR
    Key="Meas3"
    SN="MEAS3"
    312
    </AR>


    </AC>
    <PC>
    47
    </PC>

    <CM>Here's an awfully long comment, going on and on for ever and ever, spanning so many columns as to boggle the mind, causing one to wonder if it might be so long that no one reads it.</CM>
    <FL>New Meas</FL>
    <ARV>0</ARV>

    </SA>
    Last edited by Astrowars; October 3rd, 2003 at 05:33 AM.

  2. #2
    Join Date
    Dec 2002
    Posts
    47
    Show the code! Which tag are you trying to find?

    -rick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured