Re: Parsing emoty fields XML using perl
"Jenda Krynicky" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
From: Alok Sharma <[email protected]> > I need some tips to parse some piece of xml using perl (both depicted below). I need to extract the TOPNAME and MAPREF fields. Please suggest. > > Thanks, > Alok > > The XML code is : > <TEST:component xmlns:ip="IP" xmlns:nx="IP" xmlns:s="1.2" xmlns:xsi="nstance"> This looks rather strange. I guess it's not the root tag, is it? There is a xmlns:TEST="..." attribute in a parent tag, is there? There should be so that the TEST prefix is defined. Not sure what module do you use (XML::DOM?) but you should have a look at the namespace handling in its docs! Jenda ===== [email protected] === 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 _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs