Click here to Skip to main content
15,891,672 members
Home / Discussions / C#
   

C#

 
QuestionHow to add line to Form Pin
wasimsharp26-Jun-08 19:48
wasimsharp26-Jun-08 19:48 
AnswerRe: How to add line to Form Pin
Christian Graus26-Jun-08 20:02
protectorChristian Graus26-Jun-08 20:02 
AnswerRe: How to add line to Form Pin
Ravi Bhavnani26-Jun-08 20:07
professionalRavi Bhavnani26-Jun-08 20:07 
AnswerRe: How to add line to Form Pin
wasimsharp26-Jun-08 20:08
wasimsharp26-Jun-08 20:08 
GeneralRe: How to add line to Form Pin
Ravi Bhavnani26-Jun-08 20:11
professionalRavi Bhavnani26-Jun-08 20:11 
GeneralRe: How to add line to Form Pin
wasimsharp26-Jun-08 20:58
wasimsharp26-Jun-08 20:58 
GeneralRe: How to add line to Form Pin
Thomas Stockwell27-Jun-08 4:40
professionalThomas Stockwell27-Jun-08 4:40 
QuestionXML Deserialization problem Pin
Guinness4Strength26-Jun-08 18:20
Guinness4Strength26-Jun-08 18:20 
My code is serializing a generic list of objects of class IOExtension. The IOExtension has two properties :
string Name
object Value

The serialization occurs without issue and provides the following XML:
<Culture>
	<CodeCulture xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
		<GlobalExtensions>
			<CultureItemOfIOExtension ID="" Type="MyNamespace.MyClass.IOExtension, MyNamespace.MyClass, Version=2.0.0.0, Culture=neutral, PublicKeyToken=03604d72884e7711">
				<IOExtension>
					<Name>GlobalExtensions</Name>
					<Value xsi:type="xsd:string">GlobalValue</Value>
				</IOExtension>
			</CultureItemOfIOExtension>
		</GlobalExtensions>
	</CodeCulture>
</Culture>


This is all great, except when I go to deserialize the XML I get an exception on the Value property:
Namespace prefix 'xsd' is not defined.


Now I've done some testing and it appears that this does not occur when I serialize a single instance of the IOExtension object. This would appear to be an issue with serializing the generic list of objects but I'm not sure. I've thought about implementing System.Xml.Serialization.IXmlSerializable but I'm not sure how to go about serializing the object itself. Any suggestions or thoughts out there ?

I'm hoping that I can define the namespace manually somehow but obviously my knowledge of Xml Serialization is limited.
AnswerRe: XML Deserialization problem Pin
leppie26-Jun-08 23:30
leppie26-Jun-08 23:30 
GeneralRe: XML Deserialization problem Pin
Guinness4Strength27-Jun-08 3:19
Guinness4Strength27-Jun-08 3:19 
QuestionUnable to delete Pin
twistz26-Jun-08 16:49
twistz26-Jun-08 16:49 
AnswerRe: Unable to delete Pin
Christian Graus26-Jun-08 16:57
protectorChristian Graus26-Jun-08 16:57 
Questionhi, I want to create Datatable sorted by... Pin
ngoloi26-Jun-08 15:22
ngoloi26-Jun-08 15:22 
AnswerRe: hi, I want to create Datatable sorted by... Pin
Harvey Saayman26-Jun-08 21:09
Harvey Saayman26-Jun-08 21:09 
GeneralRe: hi, I want to create Datatable sorted by... Pin
ngoloi26-Jun-08 22:01
ngoloi26-Jun-08 22:01 
QuestionValidating an SQL Database shape with C# Pin
Jammer26-Jun-08 12:39
Jammer26-Jun-08 12:39 
QuestionBinary Space Partitioning Tree Problem Pin
gigahertz20526-Jun-08 10:07
gigahertz20526-Jun-08 10:07 
QuestionUsing the enterprise data library and an olap database... Pin
Christopher Stratmann26-Jun-08 9:21
Christopher Stratmann26-Jun-08 9:21 
QuestionCapturing output from the FC.exe into a Windows App Pin
Tony169826-Jun-08 6:41
Tony169826-Jun-08 6:41 
AnswerRe: Capturing output from the FC.exe into a Windows App Pin
Harvey Saayman26-Jun-08 21:19
Harvey Saayman26-Jun-08 21:19 
Questioncreating custom buttons with different shapes and colours Pin
steve_rm26-Jun-08 6:30
steve_rm26-Jun-08 6:30 
AnswerRe: creating custom buttons with different shapes and colours Pin
netJP12L26-Jun-08 7:58
netJP12L26-Jun-08 7:58 
Questionerrors and performance Pin
netJP12L26-Jun-08 5:08
netJP12L26-Jun-08 5:08 
AnswerRe: errors and performance Pin
User 665826-Jun-08 5:38
User 665826-Jun-08 5:38 
GeneralRe: errors and performance Pin
Simon P Stevens26-Jun-08 22:27
Simon P Stevens26-Jun-08 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.