[xml] Node structure questions...



Greetings,

Why is the value of an attribute a list of nodes? Is
it to be able to represent the succession of text
and entity references? If so, wouldn't it be more
space savy to have a light structure for those instead
of the full xmlNode structure (10 pointers of so)?
Also, is that an actual XML requirements, can't the
entity references be all resolved? or couldn't they be
kept unresolved in a string and be resolved when
needed?

Doing some profiling on libxml, it seems that building
a tree without attributes is very fast but that having
a lot of attributes is very costly.... I just thought
I would mention it....

Thanks for your insights!
Best Regards,
Jerome

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]