By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,465 Members | 1,511 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,465 IT Pros & Developers. It's quick & easy.

Simple XML Serialization question

P: n/a
Hi.
I'm using XML Serialization in my app, but have one tiny problem:
I've declared a string with the [XMLElement].
So then I get the string when tje XML looks like this:
<item>
<price currensy="USD">10</price>
<item>
But now I want to add a attribute to this
How do I use
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
a litle problem when maikng the last post, sorry.
Here is the right one:
I'm using XML Serialization in my app, but have one tiny problem:
I've declared a string with the [XMLElement].
So then I get the string when tje XML looks like this:
<item>
<price currensy="USD">10</price>
<item>

But i now want to add an attribute, like this:
<item>
<price currensy="USD">10</price>
<item>
I'd like to just define this attriute (as a string) in the main class,
without the need of making a new "price" class/struct
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.