Phil - You might want to look at XML::Simple. I get the impression XML::Parser is the foundation of a _lot_ of XML code (including XML::Simple). XML::Simple will load the XML into a data structure that looks a lot more like what you probably want to massage with Perl. It goes to considerable lengths to "normalize" the internal representation of XML, and you will find that they don't call it "data reduction" for nothing. The things that XML::Simple will lose for you include:
* The top-level pair of tags (but you can configure it to keep them) * Text (or at least whitespace) which is not enclosed by the innermost set of tags (e.g. the newline and two spaces before the <FamilySurname> tag in your example. * The order of duplicate tags (e.g. multiple <Member> tags). * Some of its normalization obfuscates the difference between values and attributes. This is a feature, and is to a certain extent configurable. What I would recommend is write stub scripts to just load the XML, using both XML::Parser and XML::Simple. Use Data::Dumper to dump the output, see which output you like best, and go. Tom Wyant This communication is for use by the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties. Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean http://www.DuPont.com/corp/email_disclaimer.html _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs