XML Document Rubies

Post any examples or modules that you want to share here
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: XML Document Rubies

Post by chackl »

Sounds good!

When you are done with that ill release modules sp that als users are able to work with it :)

Regards
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: XML Document Rubies

Post 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! :D
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: XML Document Rubies

Post by chackl »

Hello Trog ;)

Did you work on any update until yet?
Regards
C.Hackl
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: XML Document Rubies

Post 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.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: XML Document Rubies

Post by chackl »

No problem :P - more sun is just one reason for me to stay inside the house - like a nerd ^^ :P
We also have it warm here at the moment so i also just relax - so take you time :P

Regards ;)
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: XML Document Rubies

Post by RJHollins »

Dealing with my first parsing of XML files. :o

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 ;)

8-)
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: XML Document Rubies

Post 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.... :D
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: XML Document Rubies

Post 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 ! :shock: 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' :lol:

Anyway ... there ain't nobody around me that has the slightest clue about programming ... nor what I'm working on ... only Youse Guys !

THANKS !!!
8-)
Post Reply