Skip to content

Consider XmlSerializer/DataContractSerializer + XSLT #8

@Mike-E-angelo

Description

@Mike-E-angelo

It appears that this solution contains the same challenge addressed in ScottIsAFool/AdaptiveTileExtensions#6

I am looking at this line:
https://github.com/anbare/NotificationsExtensions/blob/master/Windows%2010/NotificationsExtensions/Common.cs#L383

And I am curious why this is being used, rather than:

var serializer = new XmlSerializer( GetType() );
serializer.Serialize( writer, this );

Because of this, there appears to be a tremendous amount of code overlap between the concerns addressed in XmlSerializer and the Xml namespace.

Would it be possible to consider a design where objects are emitted through XmlSerializer/DataContractSerializer, and then run through an XSLT like this one to emit the desired XML?

I would be interested in assisting with this. I cannot stand seeing DOM-tree walking when it can be taken care of with the lines above.

I realize this project supports different platforms, so I am looking to gain understanding here to see if there is something obvious I am missing. Thanks in advance. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions