Jump to content
Sign in to follow this  
ForsakenGod

Rewriting

Recommended Posts

ForsakenGod

Hello ,

I got a little problem with spliting this i would like to do it myself but after 2 hrs trying now i really realized i need some help with this :D

So lets say i load an xml file with following format

<Header>

<Value1 = 1>

</Header>

And IF the format <Header> xxxxx </Header> is there it should rewrite it into following ,

<Header>

<Version xxx>

<Running xxx>

$Values

</Header>

So actually what i want to do is to let the programm load the whole file and if there is that format it should get all the values between <Header> </Header> and same them as some variable for further use :huggles:

I know / quess it could be done somehow with StringSplit but i just cant make it work . If anyone has a while please try to look at it and i would be gratefull if s1 could show me the right direction how should be this done :

Thanks in advance

Unreal

Share this post


Link to post
Share on other sites
enaiman

Actually, what you need is _StringBetween to get the content between the Header tags, and StringReplace to replace it with whatever you like.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.