• 0

[XML] repeating tags with progressively increasing value


Question

hey guys, i am completely new to XML... i hope i can eventually get this done

basically, i have to make a file with a repeating tag , 'action' , where its almost like the same thing copied and pasted over and over again except for the parts in bold

<action what="notepad" who="tom" jake="man" jane="woman" rotation="True" bob="builder" speed="fast" time="1.25">

<subtag variable1="gibberish" variable2="moregibberish" />

<subtag variable1="gibberish" variable2="moregibberish" />

</action>

<action what="notepad" who="tom" jake="man" jane="woman" rotation="True" bob="builder" speed="fast" time="2.5">

<subtag variable1="gibberish" variable2="moregibberish" />

<subtag variable1="gibberish" variable2="moregibberish" />

</action>

<action what="notepad" who="tom" jake="man" jane="woman" rotation="True" bob="builder" speed="fast" time="3.75">

<subtag variable1="gibberish" variable2="moregibberish" />

<subtag variable1="gibberish" variable2="moregibberish" />

</action>

.... and so on and so on

basically for every copy of the 'action' tag, the number has to increase by a set amount

pardon me if theres an error in the XML, i just made it up on the spot to give a simple example

Edited by carmatic
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

carmatic: Pretend you are one of us and have no idea what the problem is. Then ask yourself: "What information would a person need in order to solve the problem?" Then give us that information, along with a logical question, and we'll be able to help.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.