Page 2 of 2
Re: XML Document Rubies
Posted: Sat May 25, 2013 9:23 am
by chackl
Sounds good!
When you are done with that ill release modules sp that als users are able to work with it

Regards
Re: XML Document Rubies
Posted: Sat May 25, 2013 2:21 pm
by trogluddite
chackl wrote:When you are done with that ill release modules sp that als users are able to work with it

That sound great - really appreciate your help with this!

Re: XML Document Rubies
Posted: Fri Jun 07, 2013 8:04 am
by chackl
Hello Trog

Did you work on any update until yet?
Regards
C.Hackl
Re: XML Document Rubies
Posted: Fri Jun 14, 2013 5:11 pm
by trogluddite
Hi There,
Don't worry - I haven't forgotten. Finally summer arrived and we had some beautiful weather; so I've been out and about getting some sun, and taming the jungle in my back yard! Looks like the rain is back this weekend, so I'll be getting stuck into some Ruby again.
Re: XML Document Rubies
Posted: Mon Jun 17, 2013 12:28 pm
by chackl
No problem

- more sun is just one reason for me to stay inside the house - like a nerd ^^

We also have it warm here at the moment so i also just relax - so take you time

Regards

Re: XML Document Rubies
Posted: Fri Aug 16, 2013 7:51 am
by RJHollins
Dealing with my first parsing of XML files.
Doing it all in 'Green', with a bit of RUBY interspersed.
I don't recall who created a 'Stride Get Column' module [maybe TROG from his toolkit], but I've been using that to help separate the various components. Seems to be working for about 80% of the XML's I've tested. Going to need a 100% solution, but there are some variations between the files [that I didn't expect].
I hope this topic gets revisited, and part 2 of the 'learning course' would still be happening

Re: XML Document Rubies
Posted: Fri Aug 16, 2013 10:18 am
by trogluddite
Not forgotten...
...but yes, I have put it to one side for a little while - partly holidays, nice weather etc.; also some other things I've been working on that I needed more urgently for current projects - some which I hope will link in nicely with the XML stuff, it's a nice readable format that I'd like to use for many other kinds of data management and storage.
..back soon....

Re: XML Document Rubies
Posted: Sat Aug 17, 2013 6:21 am
by RJHollins
Thanks TROG !
I've been 'parsing' through an XML file using 'green' prims ... however, In the mean time, I just can't ignore the power of RUBY. So I've been using a CASE strategy, combined with isolating 'sub-strings' with RUBY. I have a working code ... well, at least it works on my test XML. I'm now finding that there are some variations to some of these XML files that I'm going to use. I'm still hoping for a 'one-size-fits-all' solution ... I'll find out if that is practical.
As there are only 2 primary pieces of data that I need, and they are surrounded with a <HEADER> and a </TAILER>, I'm using the CASE structure as a type of filter. All in all, I may need some 90+ pairs of data [patchname and number].
Another aspect is that it's giving me a chance to work with RUBY. It really helps to have fellow members post code ... many times this is a pure life saver. After seeing solutions to something that I struggled with really helps ... PLUS, I can go to the next stage to further test the original idea I was trying for. Then, I like to go back on my own to see if I can get this RUBY stuff working as I need. My first goal is to get it to work ! It may not be real pretty or optimized ... well, in fact, it can be quite the opposite !

And of course, I've been known to take a poorly coded [but working' piece and ..... TOTALLY break it

I guess that when not smart, I've had to draw on 'To STUBBORN to quit'
Anyway ... there ain't nobody around me that has the slightest clue about programming ... nor what I'm working on ... only Youse Guys !
THANKS !!!
