ForsakenGod Posted January 21, 2010 Share Posted January 21, 2010 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 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 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 Link to comment Share on other sites More sharing options...
enaiman Posted January 21, 2010 Share Posted January 21, 2010 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 :) Link to comment Share on other sites More sharing options...
Mat Posted January 21, 2010 Share Posted January 21, 2010 _StringBetween($sXml, "<header>", "</header>") NB: Returns an array! Look in the 0th element for the first result. AutoIt Project Listing Link to comment Share on other sites More sharing options...
ForsakenGod Posted January 22, 2010 Author Share Posted January 22, 2010 Thanks guys Really helped me Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now