Re: [PHP-XML-DEV] php parsing
[email protected] ("Gert Mellak") Fri, 10 Sep 2004 12:59:22 +0200
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
> 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.