Michael,
Yes you are right.
Will have to do that I guess.
Thank you so much for your quick response.
Really appreciate it.
Thanks and regards,

Raghu



On 2/22/06, Michael Hagedorn <[EMAIL PROTECTED]> wrote:
>
> Raghu,
>
> Yes, you are right. Sorry for my misunderstanding.
> I don't see an appropriate simple method too.
>
> Looping through result of DOMNode::getChildNodes() , checking for
> (ELEMENT_NODE==NodeType) and comparing (DOMElement*)node->getTagName()
> with "module" should work. But is of course not as short and simple as
> getElementsByTagName().
>
> Regards,
> Michael
>
> Raghu wrote:
> > Micheal,
> > No the method getChildNodes returns a list of all child nodes.
> > My question is ,given the following xml
> > <list>
> >        <module>asdf</module>
> >        <module>uuu</module>
> >        <param>ttt</param>
> >        <name>gg</name>
> > </list>
> >
> > how do I retreive a list of all nodes with a particular name. For
> excample
> > how do i retreive a list of all <module>  nodes from the above xml
> file...
> >
> > Thanks and regards,
> >
> > Raghu
> >
> >
> >
> >
> > On 2/21/06, Michael Hagedorn <[EMAIL PROTECTED]> wrote:
> >
> >> Raghu,
> >>
> >> what about DOMNodeList * DOMNode::getChildNodes() ?
> >>
> >> Regards,
> >> Michael
> >>
> >>
> >> Raghu wrote:
> >>
> >>> Hi,
> >>>     I want to access immediate child DOMNodes by name.....Although
> >>> DOMElement has a method getElementsByTagName it returns a list of all
> >>> descendant nodes that have the same name....Is there a method that
> >>>
> >> returns
> >>
> >>> only immediate child nodes??
> >>> How do I do this??
> >>>
> >>> Thank you!
> >>> Regards
> >>>
> >>> Raghu
> >>>
> >>>
> >>>
> >
> >
>

Reply via email to