PDA

View Full Version : HELP! How to auto increase a value between tags?


tomten2
07-19-2009, 04:13 PM
Hello,

Hope someone can help me with this. I have several XML documents that have a certain value that need to be increased by 10, and also able to lower the values when needed. It’s a value that is between the tags: <start> </start> aswell for <endnow></endnow>


See example below:

<start>50 </start>

<endnow>100</endnow>

Anyone knows a program och script where this can be done automatically? There is a few thousands row in the document so it need to be some kind of search and replace function, but it will increase the value buy certain amount instead of replace it.

Many Thanks!:)

Thomas

Alex Vincent
07-20-2009, 06:56 AM
What programming / scripting languages do you have to work with? (Is this in a web browser, a server environment, or something else?)

tomten2
07-20-2009, 12:14 PM
Thanks for the reply Alex!

Its a XLM document that later will be used in a program for uploading the content on a website. The code itself will be used in a program envirorment, but i think the document could be edited in any code program.

I just need program where i could make this changes or run a script that will do this for me. Its not a database structure, nor possible to export to excel.

Its more likely a HTML code structure with multiple values between the mentioned tags.
<start> VALUE</start> <endnow>VALUE</endnow>

All values need to be increased by a certain amount, without increasing the other numbers outside the tags. I really need to do this, and it could save me days of work if it could be done automatically.

Cheers!
Thomas