Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: daula
  • Order by date
  1. daula

    extracting xml data

    I was thinking of xmlTextReader. Any ideas?? Thanks
  2. daula

    extracting xml data

    Actually, I did thought about using libxml but I couldn't figure how to retrieve the date. I surely can use some help on how to walk the tree. for instance, how can print the main node value/count followed by it's children's values/counts. Please, see the following sample output...
  3. daula

    data manipulation

    Thanks cpjust. and yes, it's a big mess. well, the input looks like the sample in my previous post (v4 sample). the following is a sample output: 200602,3122,000-005,305,U,4 200602,3122,000-005,305,M,57 200602,3122,000-005,305,I,5 200602,3122,000-005,305,F,220 200602,3122,000-005,305,C,1...
  4. daula

    data manipulation

    hello there; I need to re-arrange data for a report. Currently I've read the data into a vector and data is grouped by date and dollar_range. Each line stores a type and it's count: gender_1, count gender_2, count gender_n, count dollar_range_1, count . . gender_1, count gendeer_n, count...
  5. daula

    extracting xml data

    hi; anyone willing to share there wisdom with me?? please, i need help... daula
  6. daula

    extracting xml data

    I appreciate your help guys. I can't use libxm++ right now. I requested its install but the admin guys wont do it. So, I've no choice but to use what I got. I can't use That been said, I still need your help guys... thanks again. daula #include <iostream> #include <sstream> #include...
  7. daula

    extracting xml data

    Hello everyone; I'm trying to extract data from xml files. at the moment I have two set of xml files that are two and three levels deep respectively. 1st: -state -date_range 2nd: -date -dollar_range -gender In the first instance, I would like to grab all the date_range (value...
  8. daula

    assignment and passing shell variable

    Thank PHV although awk complained "unterminated regexp" and "unexpected newline". i mananged to fix it tho... $0~":name=\""vName"\">"/{++r;next} thanks again for lead/tip daula
  9. daula

    assignment and passing shell variable

    hello again; i have another variable related question... in the "sub" file (mentioned in my previous post), i have an search/action like: /:name="cState">/{++r;next} now, i'm wondering is there a way i can pass "cState" or even the whole search string ":name="cState"" as a variable? many...
  10. daula

    assignment and passing shell variable

    phew! that works. thanks PHV
  11. daula

    assignment and passing shell variable

    hi everyone; i want to take a shell variable and pass it to the -f (external file) option of awk. i have tried a couple of ways and neither works. btw, the reason i'm trying to achieve this is because for every input file there is an associated awk file (e.g IDA1.xml is associated to IDA1.sub...
  12. daula

    processing an xml file with awk

    phew! works like a champ... thanks for all your help. you've been great. daula
  13. daula

    processing an xml file with awk

    hello everyone; i'm back again... as for right now the script works like a champ with M(ales) and F(emales) params but not with the Unknowns. actually, the Unknowns are just alittle off because there're some few Unknowns that have numeric 'value's. so, i tried to modify the regex for Unknowns to...
  14. daula

    processing an xml file with awk

    Thanks, you've been alot of help... lots of blessing to you. daula
  15. daula

    processing an xml file with awk

    Good morning; Thanks... I really appreciate your help. Your script works but only and only if there is only one Gender value (i.e value>M)... but in my xml every 'currdollar' can have mutiple Gender values. for instance; I could have the following: within the 000-005 'currdollar' of 200602...
  16. daula

    processing an xml file with awk

    Just to add... I think the 200601's line should be: 200601,590,553,485,391,353,261,97,7,0,0,0 I trully appreciate your help daula
  17. daula

    processing an xml file with awk

    I'm very sorry about that... the output was generated using xslt and xsltproc. You're right the output for the second line is all wrong. However, the data in the xml is correct. thanks again daula
  18. daula

    processing an xml file with awk

    please, guys don't give up on me... i'm getting desparate here daula
  19. daula

    processing an xml file with awk

    the main reason is that awk performances way better than xslt and xsltproc combo. i had done some transformation using xslt that were taking nearly 3 min to spit the output (even after rigorous tweaking) but when i did the same transform in awk (my very first post), it took 2 secs or less. all...
  20. daula

    processing an xml file with awk

    please someone, i'm still desperately stuck. daula

Part and Inventory Search

Back
Top