problem parsing with XML::DOM

problem parsing with XML::DOM

am 10.07.2008 19:54:27 von Avraham Shapiro

--===============1116718739==
Content-Type: multipart/alternative; boundary="____LPHMXLZMXOMRLFKSEJCW____"


--____LPHMXLZMXOMRLFKSEJCW____
Content-Type: text/plain; charset=utf-8
Content-Language:
Content-Transfer-Encoding: base64

SSdtIGNyb3NzcG9zdGluZyB0aGlzIHRvIFBlcmwgYW5kIFhNTCBsaXN0c2Vy dnMgc2luY2UgaXQg
aW52b2x2ZXMgWE1MIHBhcnNpbmcgIGZyb20gd2l0aGluIFBlcmwuDQoNCkkn bSBoYXZpbmcgdHJv
dWJsZSBwYXJzaW5nIGEgc2ltcGxlIGJpdCBvZiBYTUwgd2l0aCBYTUw6OlhR TDo6RE9NLg0KVGhl
IGJpdCBvZiBYTUwgaXMgYXMgZm9sbG93czoNCg0KLi4uLg0KPHRlc3QgaWQ9 Im9wZl9tbmZJbnRl
Z3JpdHlFeGlzdHMiIHR5cGU9InJlcXVpcmVtZW50Ij4NCiAgICAgICAgICAu Li4NCiAgICAgICAg
ICA8b25GYWxzZU1zZz4NCiAgICAgICAgICA8bXNnIGNsYXNzPSJzaG9ydCI+ bWFuaWZlc3Q6IG1p
c3NpbmcgZmlsZTwvbXNnPg0KICAgICAgICAgIDxtc2cgY2xhc3M9Imxvbmci PkZpbGUgbGlzdGVk
IGluIG1hbmlmZXN0IGRvZXMgbm90IGV4aXN0PC9tc2c+IA0KICAgICAgICAg PC9vbkZhbHNlTXNn
Pg0KICAgICAgIDwvdGVzdD4NCg0KaGVyZSdzLiB0aGUgY29kZSB0aGF0IGRv ZXMgdGhlIHBhcnNp
bmcNCg0KIyBpbiBhIGxvb3AgdGhhdCBwaWNrcyB1cCB0aGUgPHRlc3Q+IHRh Zw0KLi4uDQplbHNp
ZiAoJG1zZ2NoaWxkLT5nZXROb2RlTmFtZSgpIGVxICJ0ZXN0IikNCnsNCiAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIC4uLi4gICAgICAgICAgICAgICAg ICAgICAgIA0KICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JlYWNoICR0 ZXN0Y2hpbGQgKCRt
c2djaGlsZC0+Z2V0Q2hpbGROb2RlcygpICkNCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIC4uLi4N
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNp ZiAoJHRlc3RjaGls
ZC0+Z2V0Tm9kZU5hbWUoKSBlcSAib25GYWxzZU1zZyIpDQogICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgIGZvcmVhY2ggJG9uRkNoaWxkICgkdGVzdGNoaWxkLT5n ZXRDaGlsZE5vZGVz
KCkpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgew0K
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgIGZvcmVhY2ggICRhdHRyIChrZXlzICV7JG9uRkNoaWxkLT5nZXRBdHRy aWJ1dGVzKCl9KQ0K
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIGlmICgkYXR0ciBlcSAiY2xhc3Mi KQ0KICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJGNs YXNzPSRvbkZDaGls
ZC0+Z2V0QXR0cmlidXRlKCRhdHRyKTsNCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICRt
c2c9JG9uRkNoaWxkPmdldEZpcnN0Q2hpbGQoKS0+Z2V0RGF0YSgpOw0KICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgJHRmbXNnaGFzaHskY2xhc3N9PSRtc2c7DQogICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgfSAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAg ICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAg
ICB9ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAN CiAgfQ0KICANCldo
ZW4gdGhlIHByb2dyYW0gcmVhY2hlcyB0aGUgZm9yZWFjaCAkYXR0ciBsaW5l IEkgZ2V0IHRoZSBm
YXRhbCBlcnJvcjogIkNhbid0IHVzZSBhbiB1bmRlZmluZWQgdmFsdWUgYXMg YSBIQVNIIHJlZmVy
ZW5jZSBhdCANCnplZFBvc3RQcm9jZXNzLnBsICBsaW5lIDUwNi4iICBtZWFu aW5nIG9mIGNvdXJz
ZSB0aGF0ICBvbkZDaGlsZCBoYXMgbm8gYXR0cmlidXRlL3ZhbHVlIA0KcGFp cnMuICBJbiBmYWN0
LCB3aGVuIEkgcHJpbnQgJG9uRkNoaWxkLT5nZXROb2RlTmFtZSBJIGdldCAi I3RleHQiIGFzIG9w
cG9zZWQgdG8gdGhlIGV4cGVjdGVkICJtc2ciDQphbmQgd2hlbiBJIHByaW50 ICRvbkZDaGlsZC0+
Z2V0Tm9kZVR5cGUoKSBJIGdldCAzIHdoYXRldmVyIHRoYXQgbWVhbnMuDQoN CkNhbiBhbnlvbmUg
c2F5IHdoYXQgSSdtIGRvaW5pZyB3cm9uZywgb3IgaXMgdGhlcmUgYSBidWcg aW4gWE1MOjpYUUw6
OkRPTT8NCg0KVGhhbmtzDQoNCkF2aQ==

--____LPHMXLZMXOMRLFKSEJCW____
Content-Type: multipart/related; boundary="____WHPEPQYSAQXEHDGESJXG____"


--____WHPEPQYSAQXEHDGESJXG____
Content-Type: text/html; charset=utf-8
Content-Language:
Content-Transfer-Encoding: base64

PEhUTUw+PEhFQUQ+DQo8TUVUQSBodHRwLWVxdWl2PUNvbnRlbnQtVHlwZSBj b250ZW50PSJ0ZXh0
L2h0bWw7IGNoYXJzZXQ9dXRmLTgiPg0KPE1FVEEgY29udGVudD0iTVNIVE1M IDYuMDAuMjgwMC4x
NjExIiBuYW1lPUdFTkVSQVRPUj48L0hFQUQ+DQo8Qk9EWSBzdHlsZT0iTUFS R0lOOiA0cHggNHB4
IDFweDsgRk9OVDogMTBwdCBUYWhvbWEiPg0KPERJVj5JJ20gY3Jvc3Nwb3N0 aW5nIHRoaXMgdG8g
UGVybCBhbmQgWE1MIGxpc3RzZXJ2cyBzaW5jZSBpdCBpbnZvbHZlcyBYTUwg cGFyc2luZyZuYnNw
OyBmcm9tIHdpdGhpbiZuYnNwO1BlcmwuPC9ESVY+DQo8RElWPiZuYnNwOzwv RElWPg0KPERJVj5J
J20gaGF2aW5nIHRyb3VibGUgcGFyc2luZyBhIHNpbXBsZSBiaXQgb2YgWE1M IHdpdGggWE1MOjpY
UUw6OkRPTS48L0RJ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ME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1116718739==--

Re: problem parsing with XML::DOM

am 10.07.2008 21:30:18 von Jenda Krynicky

From: "Avraham Shapiro"
> I'm crossposting this to Perl and XML listservs since it involves XML parsing from within Perl.
>
> I'm having trouble parsing a simple bit of XML with XML::XQL::DOM.

Why would anyone want to use DOM to work with XML? I doubt there is
any more wordy and longwinded way to handle XML.

It's hard to know what do you actually want to do with your XML, but
it seems you are trying to store the different s into a hash
using the class as the key, probably to use that later.

You might like the XML::Rules way where for each tag you specify what
data are you interested in or the code you want to execute for the
tag, its attributes, content and the data extracted from the subtags.

Eg in this case you might do something like

# http://search.cpan.org/~jenda/XML-Rules-1.03/lib/XML/Rules.p m
my $parser = XML::Rules->new(
rules => {
msg => 'by class',
onFalseMsg => 'no content',
test => sub {
my ($tag, $attr) = @_;
print qq{Test: $attr->{id} type})
Short message: $attr->{onFalseMsg}{short}
Long message: $attr->{onFalseMsg}{long}
};
return;
},
}
);

$parser->parse($the_xml);

With the additional advantage that you do not keep the whole XML
parsed into a maze of objects in memory, but instead as soon as you
are done parsing and processing the tag you can forget its
contents.

HTH, Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs