Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

XML Document Rubies

Post any examples or modules that you want to share here

Re: XML Document Rubies

Postby chackl » Sat May 25, 2013 9:23 am

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
chackl
 
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: XML Document Rubies

Postby trogluddite » Sat May 25, 2013 2:21 pm

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
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: XML Document Rubies

Postby chackl » Fri Jun 07, 2013 8:04 am

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
chackl
 
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: XML Document Rubies

Postby trogluddite » Fri Jun 14, 2013 5:11 pm

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
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: XML Document Rubies

Postby chackl » Mon Jun 17, 2013 12:28 pm

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.
User avatar
chackl
 
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: XML Document Rubies

Postby RJHollins » Fri Aug 16, 2013 7:51 am

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-)
RJHollins
 
Posts: 1568
Joined: Thu Mar 08, 2012 7:58 pm

Re: XML Document Rubies

Postby trogluddite » Fri Aug 16, 2013 10:18 am

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!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: XML Document Rubies

Postby RJHollins » Sat Aug 17, 2013 6:21 am

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-)
RJHollins
 
Posts: 1568
Joined: Thu Mar 08, 2012 7:58 pm

Previous

Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 41 guests