Gareth Reakes, Lead Software Engineer  
DecisionSoft Ltd.            http://www.decisionsoft.com
Office: +44 (0) 1865 203192

,> > 
> >             i++;
> >             NdNode = NdProp.getNextSibling();
> >             if (NdNode.isNull()) 
> >                     return true;
> >             nNdTpNode = NdNode.getNodeType();
> >             dsNdNmNode=NdNode.getNodeName();
> >             pszNdNmNode = dsNdNmNode.transcode();
> >             dsNdVlNode=NdNode.getNodeValue();
> >             pszNdVlNode = dsNdVlNode.transcode();
> >             if (pszNdVlNode==NULL)
> >                     pszNdVlNode="NULL";
> >     
> > printf("\n%d\t%d\t%s\t\t<%s>\n",i,nNdTpNode,pszNdNmNode,pszNdVlNode);
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 23 March 2001 11:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: NEWBIE:Cannot get to subnodes using getFirstChild and
> > getNextSibl ing
> > 
> > 
> > 
> > >Is there a way of getting pass these type of characters like Tabs,
> > >Linefeeds,etc etc.
> > 
> > Advance to the next sibling node.
> > 
> > >It would appear that the getNextSibling() function points to the same
> > >element(most prolly a LineFeed+tab) everytime.
> > 
> > You mean node rather than element. But to answer your question, consider
> > the following pseudocode:
> > 
> >      Element myProperties=myDoc.getElementByTagName("properties");
> >      for(Node child=myProperties.getFirstChild;
> >           child!=null;
> >           child=child.getNextSibling() )
> >      {
> >           if (child.getNodeType()==Node.ELEMENT_NODE)
> >           {
> >                // Do whatever's appropriate
> >           }
> >           else
> >           {
> >                // In your application, you may not care about anything
> > else.
> >                // If that's true, just ignore it and move on
> >           }
> >      }
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to