Re: php parsing

From: Date: Fri, 10 Sep 2004 10:59:22 +0000
Subject: Re: php parsing
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-456@lists.php.net to get a copy of this message
> Between </Group1> and <Group2> is definitively a text-node ("\n"). > > You have to live with that, whitespaceonly text nodes are not negligible... ok, thank you... it should be no problem to work around this anyway... but please let me ask another question... the following structure <Data> <Article> <Number>3746</Number> <Description>This is the article description</Description> <Group>Group 1 <Group>Group 2 <Group>Group 3 <Group>Group 4</Group> </Group> </Group> </Group> </Article> </Data> represents an article and its groups (article categories). It's the same again, the current node is the first group-node. The script prints out the following: number of childNodes: 3 current node_name: #text, get_content=Group 1 current node_name: Group, get_content=Group 2 Group 3 Group 4 current node_name: #text, get_content= How can I manage to the elements seperately?? Thanks in advance again, Gert.

« previous php.xml.dev (#456) next »