[xmlenc-devel] New class responsible for output (Was: XMLStream)
Brought to you by:
znerd
From: Ernst de H. <zn...@Fr...> - 2002-12-09 12:41:10
|
> I didn't understand why you are planning this: > > I would like to introduce a new class that is responsible only for the > > different types of output (raw, PCDATA with char entity replacements, > > attribute values, etc). > > Could you elaborate on this thought some time? Currently the main class (XMLStream, previously XMLEncoder) inheritance chain is based on the low-level, encoding-specific, output characteristics. There are 2 subclasses, one for Unicode encodings and one for ASCII-based encodings. If the main class should be extensible in terms of functionality or behaviour, then a new class should be introduced to encapsulate the low-level output characteristics. Then the main class will delegate that to this new class. Ernst -- Ernst de Haan Development Team Leader Wanadoo Nederland B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ |