Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: SVG DOM >Thread Next - Re: SVG DOM Re: SVG DOMTo: NULL Date: 9/28/2009 12:46:00 PM Maybe I misread some part of the documentation or don't know C# well
enough but some functions and properties don't seem to be overridable. For
example XElement.Add
(http://msdn.microsoft.com/en-us/library/bb354061.aspx). Also for example
XDocument.Load is static rather then virtual so to construct my own classes
during loading XML I would have to provide in XMyDocument a function MyLoad
for example.
Or are there any examples of inheriting from X* classes?
Adam Badura
"Martin Honnen" <mahotrash@y...> wrote in message
news:ezUYzGCQKHA.4244@T......
> Adam Badura wrote:
>> I want to implement classes for SVG DOM as described in SVG
>> Specification. However I don't want to reimplement entire XML DOM because
>> firstly it is a lot of work and secondly this would make using them with
>> existing code harder (when compared to using System.Xml classes). I
>> preferred System.Xml.Linq classes since I do not require strict
>> conformance to DOM specification and I think X* classes are much easier
>> to use. However it seems that those classes were not meant to be
>> inherited from. So what are the options? What do you think I should do?
>
> Can you explain why you think that those "classes were not meant to be
> inherited from"?
> XElement
> http://msdn.microsoft.com/en-us/library/system.xml.linq.xelement.aspx
> for instance is certainly not sealed/final.
>
>
> --
>
> Martin Honnen --- MVP XML
> http://msmvps.com/blogs/martin_honnen/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
