Hi Robert,

nice communicating with you again,
well, hoping i can explain it correctly:

after getting the xml and cleaning it a bit,I have a
recursive function which gets a block (one of the nested ones
you get after parse-xml)
and checks if it is either 1 of 4 types:
- tag
- attributes
- value
- block of children

(there are no more 'basic' types if i am correct)

for each type it gathers information (each type is a temporary block)
if type is tag:
        -name, attributes, children/value (how many attributes or children, and 
which value)
if type is attributes:
        which
if type is value:
        what value
if type is block of children:
        how many

So far O.K.

Now i want for each appropriate type it's immediate parent, if it has more 
elements
on the same level and how many (all with same immediate parent)

Also i want to remember how many elements on the former level have been passed,
and how many are still to come

etc etc...

let me work on it for a day or so, and i will paste the code here..

the example i have shown on my temp. server (IE only i am afraid: 
http://131.211.29.218 )
was very very easy, but the script i want should make it even easier (once 
i have all that information)

HJ

Reply via email to