#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    6
    Rep Power
    0

    Vbscript reading multiple XML attributes in a loop


    here is the xml I have:


    <?xml version="1.0" encoding="utf8" ?>
    <curriculum>
    <outcomes>
    <outcome>
    <identifier>N9.1</identifier>
    <outcome_text>Demonstrate (concretely, pictorially, and symbolically) understanding of powers with integral bases (excluding base 0) and whole number exponents including:\
    </outcome_text>
    <outcome_text_list>
    <li>representing using powers</li>
    <li>evaluating powers</li>
    <li>powers with an exponent of zero</li>
    <li>solving situational questions.</li>
    </outcome_text_list>
    <identifier>N9.2</identifier>
    <outcome_text>Demonstrate understanding of rational numbers including:
    </outcome_text>
    <outcome_text_list>
    <li>comparing and ordering</li>
    <li>relating to other types of numbers</li>
    <li>solving situational questions.</li>
    </outcome_text_list>
    </outcome>


    Here is what i want output

    N9.1
    Demonstrate (concretely, pictorially, and symbolically) understanding of powers with integral bases (excluding base 0) and whole number exponents including:
    representing using powers
    evaluating powers
    powers with an exponent of zero
    solving situational questions.


    N9.2
    Demonstrate understanding of rational numbers including:
    comparing and ordering
    relating to other types of numbers
    solving situational questions.


    How do I loop through the "outcomes" collection and get outcome/identifier , outcome/outcome_text ,outcome/outcome_text_list for each outcome?
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    You must have forgotten to post the vb code you have so far, and what doesn't work in that code.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain

IMN logo majestic logo threadwatch logo seochat tools logo