Re: newby question : parse xml file
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 31 May 2006 19:30:13 GMT
"EF" <felad@xxxxxxxxx> wrote:
Hi
I have xml file that look like that
<entities>
<Comp id="123">
<Description max_length="" reference_to=""
type="multiline_string"/>
<Clone max_length="" reference_to="Comp"
type="reference_list">
<Comp id="129" />
</Clone>
</Comp>
<Comp id="124">
<Description max_length="" reference_to=""
type="multiline_string"/>
</Comp>
</entities>
I need a way to get the Comp id numbers that are only on the top level
( under entities )
and not in all xml file.
Alternative solution, using XML::Parser:
http://johnbokma.com/perl/element-id-for-given-parent.html
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
.
- Prev by Date: Re: Best method for seeking to n lines before end of file [ implementation of tail ]
- Next by Date: Print out modules used during runtime?
- Previous by thread: Best method for seeking to n lines before end of file [ implementation of tail ]
- Next by thread: Print out modules used during runtime?
- Index(es):
Relevant Pages
|