perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarrod Stenberg <slo...@yahoo.com>
Subject XML compression?
Date Mon, 04 Nov 2002 20:10:59 GMT
This is slightly off-topic, so please forgive me.   I
made a mod_perl module that outputs XML when given a
SQL aquery.  

The modules used:
XML::Generator::DBI
XML::Handler::YAWriter
XML::Parser::PerlSAX

There is a "text" field in the mysql database that is
coming back like so:

- <row>
  <id>87015</id> 
 
<body>QSByZWFsbHkgZ29vZCBidWRkeSBvZiBtaW5lIGNhbGxlZCBtZSB0aGUgb3RoZXIgZGF5IHRvIGxl
dCBtZSBrbm93IGhlIGhhZCBib3VnaHQgYSAnOTYgODU1dC4gSGUgaGFkIGEgJzg4IDc0NVQgYnV0
IHdhbnRlZCBhICdtb3JlJyByZWxpYWJsZSBjYXIuIEhlIHdpbGwgdGFraW5nIHNvbWUgY291cnNl
cyBzb29uIGFuZCBkb2Vzbid0IHdhbnQgdG8gaGF2ZSB0byByZXBhaXIgaXQgb3IgYmUgc3RyYW5k
ZWQuIEhlIGNhbGxlZCB0aGlzIG1vcm5pbmcgdG8gc2F5IGhlIHdvdWxkIGJlIGEgbGl0dGxlIGxh
dGUgdmlzaXRpbmcgbWUgc2luY2UgaGUgaGFkIGEgbWlub3Igc3RhcnRlZCBwcm9ibGVtLiBIZSBh
cnJpdmVkIGxhdGVyIGFuZCBkZXNjcmliZWQgaGlzIG1vcm5pbmcuIEl0J3MgcXVpZSBjb2xkIGFy
ZW91bmQgaGVyZSByaWdodCBub3cgYW5kIGhlIHdhcyB3b3JraW5nIG9uIGl0IG91dHNpZGUsIHdo
YXQgYSBtYW4uIEhlIHNhaWQgdGhlIHN0YXJ0ZXIgd2FzIGhhbmdpbmcgYSBsaXR0bGUgYW5kIGFm
dGVyIHRha2luZyBpdCBhcGFydCBmb3VuZCBpdCBuZWVkZWQgdG8gYmUgbHViZWQsIHdoaWNoIGhl
IGRpZCBhbmQgaXQgbm93IHdvcmtlcyBqdXN0IGZpbmUsIHRoYW5rIHlvdSB2ZXJ5IG11Y2guIEhl
IGFsc28gcG9pbnRlZCBvdXQgaXQgaGFkIGEgbmV3IGJhdHRlcnkgaW5zdGFsbGVkIGluIE5vdiBv
ZiAxOTk5IGFuZCB3YXMgdHJhZGVkIGluIERlYyBvZiAxOTk5LiBIZSBhbHNvIGdvdCBhIHJlYWxs
eSBnb29kIHByaWNlIGZvciBpdCB3aXRob3V0IGEgd2FycmFudGVlLCBhcm91bmQgJDE4ay4gV2Ug
ZGVjaWRlZCB0aGUgcHJldm91cyBvd25lciBoYWQgdHJpZWQgYSBuZXcgYmF0dGVyeSB0byBmaXgg
aGlzIHN0YXJ0ZXIgcHJvYmxlbSBhbmQgdGhhdCBub3Qgd29ya2luZywgZ2F2ZSB1cC4gVGhlIGRl
YWxlciBkaWRuJ3Qgd2FudCBhIHByb2JsZW0gY2FyIGFuZCAndW5sb2FkZWQnIGl0IG9uIG15IGZy
aWVuZC4gTXkgZnJpZW5kIGZpeGVkIGl0IGFuZCBub3cgaGFzIGEgcmVhbGx5IGdvb2QgY2FyIGNo
ZWFwLiBBbGwgdGhpcyB3aXRob3V0IHRoZSBCcmlja2JvYXJkLiBPbmUgbW9yYWwgb2YgdGhlIHN0
b3J5IGNvdWxkIGJlLCB0aGVyZSBhcmUgc3RpbGwgYmFyZ2FpbnMgdG8gYmUgaGFkIG91dCB0aGVy
ZSB0aGFua3MgdG8gc3R1cGlkIHBlb3BsZS4gT3IgYW5vdGhlciwgZml4IGl0IHlvcnNlbGYgYW5k
IHNhdmUuCi0tCndiYWluICc4NiA3NDRUaSBNNDYgPjIzM0ttaSwgJzk2IDk2NSA+NTBLbWkgd2lm
ZW1vYmlsZSwgbmVhciBNYW5hc3NhcyBWYS4=</body> 
  </row>

What the heck is this encoding?  The documentation
says nothing about compression.  I can't find anything
about this.

Thanks for any tips.
-Jarrod

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message