Giter Site home page Giter Site logo

Comments (6)

Mike-E-angelo avatar Mike-E-angelo commented on June 3, 2024 1

Alright @c0deExplorer it took some time here to brush off the dust but I am happy to say that what you are after is possible. Please check out this test/configuration:

https://github.com/ExtendedXmlSerializer/home/blob/a4f8a3509ed246bac0ab37c54ecc9e357055d14a/test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue604Tests.cs

You will find that it emits the following:

<?xml version="1.0" encoding="utf-8"?>
<Issue604Tests-Subject>
	<Store>
		<Entry>
			<Key>Hello</Key>
			<Value>true</Value>
		</Entry>
		<Entry>
			<Key>World</Key>
			<Value>false</Value>
		</Entry>
	</Store>
</Issue604Tests-Subject>

So the extra attributes are removed and Item has been renamed to Entry.

Please let me know if you have any further questions and I will assist,

from home.

c0deExplorer avatar c0deExplorer commented on June 3, 2024 1

Thank you so much @Mike-E-angelo. Never knew about InspectedPropertyTypes. It did do the trick!! Great work! I'll work on it and get back if I see anything different. Again, Thanks a ton for your wonderful support and really appreciate your time spend to investigate this.

from home.

Mike-E-angelo avatar Mike-E-angelo commented on June 3, 2024

Hi @c0deExplorer thank you for writing in. For my edification on the first question can you provide the container configuration code you used to generate the XML in question? This will assist me in knowing how to proceed.

For the second question, I do not believe this is easily possible, but I will look into this for you.

It's been a while since I have been in this project so I will have to brush off the dust here and get re-acclimated. 😇

from home.

c0deExplorer avatar c0deExplorer commented on June 3, 2024

Thanks much @Mike-E-angelo . Here's the config I am trying out as of now:

    IExtendedXmlSerializer serializerTest = new ConfigurationContainer()
                                              .EnableImplicitTyping(typeof(Dictionary<string, TestType>),
                                                                    typeof(List<Subject>), typeof(Subject))
                                              .Create();

from home.

create-issue-branch avatar create-issue-branch commented on June 3, 2024

Branch issues/other/i604 created!

from home.

Mike-E-angelo avatar Mike-E-angelo commented on June 3, 2024

Thank you for the kind words. If you ever need any further assistance please open a new issue and we will take a look into it. Closing this for now.

from home.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.