Click here to Skip to main content
15,900,724 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionDifferentiate XML files with OpenFileDialog Pin
softplanner11-Nov-05 3:31
softplanner11-Nov-05 3:31 
QuestionPassing a xml object in C# Pin
pavan bhatara8-Nov-05 0:17
pavan bhatara8-Nov-05 0:17 
QuestionXML nomenclature/structure question Pin
Vikram A Punathambekar6-Nov-05 19:56
Vikram A Punathambekar6-Nov-05 19:56 
AnswerRe: XML nomenclature/structure question Pin
Shog922-Nov-05 6:51
sitebuilderShog922-Nov-05 6:51 
QuestionCan't parse SOAP with XPath Pin
Zhornyk5-Nov-05 3:19
Zhornyk5-Nov-05 3:19 
QuestionVBA / XML Pin
stevenho2-Nov-05 12:13
stevenho2-Nov-05 12:13 
QuestionGetting IE to pass a file in XML format with a custom extension to my C#/Winforms application Pin
timothymfox31-Oct-05 6:45
timothymfox31-Oct-05 6:45 
QuestionProblem changing class field from string to Class Pin
Jason Pease31-Oct-05 0:59
Jason Pease31-Oct-05 0:59 
I am maintaining an application that uses the XmlSerializer to import and export data. I would like to make some modifications to the internals of the application, but I need to maintain backward compatibility with older XMLs that customers may have.

Essentially I'm trying to change

[XmlAttribute]
public string CashFlowType;

, which contains the name of the type, to this

[XmlAttribute]
public CashFlowType CashFlowType;

, which would be an object that encapsulates all of the details of the object instead of just the name.

The problem is that the Serializer can't put the complex type CashFlowType into an XmlAttribute, and rightly so.

The ideal solution would be to use [XmlElement] and write out the fields that I need to deserialize, but for the sake of maintaining backward compatibility, I cannot change the attribute to an element.

I have tried setting all of the fields of CashFlowType to [XmlIgnore] and I overrode ToString() in the hopes that the serializer would put the result of ToString in the attribute but it throws an exception just the same.

If anyone has any ideas it would be greatly appreciated.

Thanks, Jason


Questionsyntax error '<' Pin
gr8coaster32930-Oct-05 15:17
gr8coaster32930-Oct-05 15:17 
AnswerRe: syntax error '<' Pin
Christian Graus30-Oct-05 16:05
protectorChristian Graus30-Oct-05 16:05 
GeneralRe: syntax error '<' Pin
gr8coaster32930-Oct-05 17:09
gr8coaster32930-Oct-05 17:09 
GeneralRe: syntax error '<' Pin
Christian Graus30-Oct-05 17:17
protectorChristian Graus30-Oct-05 17:17 
GeneralRe: syntax error '<' Pin
gr8coaster32931-Oct-05 9:28
gr8coaster32931-Oct-05 9:28 
GeneralRe: syntax error '<' Pin
Christian Graus31-Oct-05 10:54
protectorChristian Graus31-Oct-05 10:54 
Questionshould i use flash or director with my xml? Pin
lezlea29-Oct-05 21:03
lezlea29-Oct-05 21:03 
AnswerRe: should i use flash or director with my xml? Pin
Sushant_Mathur14-Nov-05 20:10
Sushant_Mathur14-Nov-05 20:10 
QuestionXSLT stylesheet Pin
HpLif28-Oct-05 8:25
HpLif28-Oct-05 8:25 
Questionproblem in updation Pin
Nadia stoichov26-Oct-05 17:45
sussNadia stoichov26-Oct-05 17:45 
AnswerRe: problem in updation Pin
Denevers14-Nov-05 13:39
Denevers14-Nov-05 13:39 
AnswerRe: problem in updation Pin
Sushant_Mathur14-Nov-05 19:54
Sushant_Mathur14-Nov-05 19:54 
QuestionSOAP via stdin/stdout - how? Pin
Carsten Leue25-Oct-05 8:33
Carsten Leue25-Oct-05 8:33 
Questionhow can i insert image in .chm file with the help of xml comments?? Pin
parvinder sehrawat23-Oct-05 21:23
parvinder sehrawat23-Oct-05 21:23 
Questionexporting image field from sql server... Pin
l a u r e n21-Oct-05 14:54
l a u r e n21-Oct-05 14:54 
AnswerRe: exporting image field from sql server... Pin
Sushant_Mathur25-Oct-05 0:37
Sushant_Mathur25-Oct-05 0:37 
Questionweb services and oracle Pin
BECK720-Oct-05 11:47
BECK720-Oct-05 11:47 

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.