Re: [Libxmlplusplus-general] DOM traversal and the semantics of 'get_attribute', 'get_content', etc.



On Mon, 2003-02-03 at 15:43, Stefan Seefeld wrote:
> hi there,
> 
> while methods such as 'get_attribute' or 'get_content' look fairly
> innocent and just like arbitrary accessors, they are not. They may
> involve quite a bit of internal processing, such as entity replacement
> or default value lookup in the dtd/schema.
> 
> It is therefor important to clearly define what those methods should
> do, or, if necessary, provide alternative ways to access the 'raw'
> content vs. access the preprocessed data.
> 
> For example, with the single attribute access point 'get_attribute'
> we either can figure out what attribute was really given in the 'raw'
> document, or, what the attribute logically is (i.e. in case there is
> a default value, take this if it is not explicitely given).

I think there's no question that an XML parser should do the necessary
substitution according to the DTD. We don't need broken versions of the
methods too.

At the moment we seem to access private struct fields instead of using
the libxml API. We need to fix this somehow.

-- 
Murray Cumming
murray usa net
www.murrayc.com





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