Forum: Awstats XML dumps
| joku 269 days ago | jawstats should handle awstats XML data format correctly or at least give some information about why it fails. It took a while to find why anything isn't displayed.
Do anyone know any way to convert all awstats xml files back to text files (current one is easy as awstats does that automatically but I can't figure out reasonably easy way for older files)? |
| Asaf 264 days ago | what is the advantage using XML instead of plain text?
wouldn't it require more memory ? I guess you can convert XML to plain text using XSLT |
| joku 263 days ago | Actually just simple very easy script was enough. Ugly solution but works for one-time problem:
tmp=`mktemp` for i in *.txt; do cat $i | grep -v 'xmlns:xsi' > $tmp cat $tmp | grep -v 'section id' > $i sed -i s/''//gi $i sed -i s-''--gi $i sed -i s/''//gi $i sed -i s-''--gi $i sed -i s-''-\ -gi $i sed -i s-''--gi $i sed -i s-''-\ -gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-''--gi $i sed -i s-'10'--gi $i sed -i s-''--gi $i sed -i s-''--gi $i done rm $tmp |
| joku 262 days ago | Woops. Great proofreading, forum stripped of html tags. Pastebin: http://pastebin.com/f6bb519b0 |
Participate in this discussion
You must be logged in to post in this thread.
Version 0.7 beta available now
Released 25th Janury 2009Try the online demo or download now.
Latest JAWStats News:
Version 0.7 Beta Released
Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.
posted 25th Jan '09. read more »
Help JAWStats
Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.
Get $50 off your webhosting
You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!