Re: Getting XML Nodes based on attributes value
by Joseph C. Bautista other posts by this author
Sep 9 2005 2:57AM messages near this date
view in the new Beta List Site
RE: Getting XML Nodes based on attributes value
|
Re: Getting XML Nodes based on attributes value
& XSLT Thank you for all who share some inputs. XML::XPath is what I am really
looking for.
Thank you and God Bless...
(`/ `=\/\ __...--~~~~~~~-._ _.-~~~~~~---...__
`=\/\ {=} \_/ \\
`=\/\ {=} Joseph C. Bautista \\
`=\/\{=} I.N. Team Leader / OSS Engr \\
`=\/{=} FCCI Kuwait \\
\/ {=} (+63) 09277799999 \\
\/ {=} (+965)9394038 \ \/_\_{=}__--~~~~~~~-._ _.-~~~~~~~~-
-...__\\
|\//) (..----~~~~~~~._\ | /_.~~~----------....._.||
|+==( INK )===========\\|//=======================+
Tod Harter wrote:
> XSLT?
>
> If you want to generate some output XML then an XSLT transform would
> seem to be a quick and easy way to do it...
>
>
> Joseph C. Bautista wrote:
>
> > Hi All,
> >
> > I was wondering if there's a module that i can used to get only
> > the nodes in an XML file based on the attributes value?
> >
> > Example XML is:
> >
> > <Things>
> > <Object Class="Pens" Location="Room">
> > <p name="length">4<\p>
> > <p name="thickness">.5</p>
> > <p name="color">yellow</p>
> > </Object>
> > <Object Class="Papers" Location="Room">
> > <p name="length">9<\p>
> > <p name="thickness">2</p>
> > <p name="color">yellow</p>
> > </Object>
> > <Object Class="Pens" Location="Sala">
> > <p name="length">4<\p>
> > <p name="thickness">.5</p>
> > <p name="color">Black</p>
> > </Object>
> > <Object Class="Papers" Location="Sala">
> > <p name="length">9<\p>
> > <p name="thickness">3</p>
> > <p name="color">white</p>
> > </Object>
> > </Things>
> >
> > If I want to retrieve only the objects with class "Pens" then i
> > would just execute something like
> >
> > $xml->node("Object", "Class" => "Pens")
> > and the module(s) will give me a hashref with two values. All
> > objects, including its parameters, with class "pens" (1 in "Sala" and
> > 1 in "Room")?
> >
> >
> > Thanks...
> >
> > Br,
> > Joseph
> >
> >
> >
>
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
--
This message has been scanned for viruses and dangerous content by host-center.net and is be
lieved to be clean.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Joseph C. Bautista
Tod Harter
Mark - BLS CTR Thomas
Andrew Strader
Joseph C. Bautista
Joseph C. Bautista
Petr Pajas
Robin Berjon
Merijn van den Kroonenberg
|