I developed an XML writer in C++ using Smart Pointers (MSXML). This is for the purpose of a person filling out a config dialogue and dumping data to the XML. This was all done in MFC. Well, they want us to move to Windows Forms - which I am not experienced with. Does anyone have any examples or tutorials for generating XML with Managed C++? Suggestions???
Writing XML with Managed C++Usually never get an answer, but I'll keep trying
Page 1 of 1
5 Replies - 2362 Views - Last Post: 03 August 2009 - 06:22 PM
Replies To: Writing XML with Managed C++
#2
Re: Writing XML with Managed C++
Posted 03 August 2009 - 11:09 AM
I don't really no managed C++ but here is a search that you could look at.
http://social.msdn.m...n...%20xml&ac=3
http://social.msdn.m...n...%20xml&ac=3
#3
Re: Writing XML with Managed C++
Posted 03 August 2009 - 11:26 AM
Google search for "writing xml with managed c++"
Is it really that difficult?
Also, go to MSDN.
System.Xml namespace
XmlWriter class
Is it really that difficult?
Also, go to MSDN.
System.Xml namespace
XmlWriter class
#4
Re: Writing XML with Managed C++
Posted 03 August 2009 - 11:29 AM
#5
Re: Writing XML with Managed C++
Posted 03 August 2009 - 05:39 PM
I apologize, I was a bit cranky this morning, Monday AM and all, crap weekend.
Did you check out the other links to MSDN? What exactly are you doing that you're having trouble with? Must you use C++ or is C# an option , because honestly, you're going to find more examples with that. Using the XmlWriter classes is not terribly difficult for most things, and if you're flexible in your config file demands, you can leverage the System.Configuration namespace as well.
EDIT: Actually, I stand corrected, it was the afternoon. The remainder still stands.
Did you check out the other links to MSDN? What exactly are you doing that you're having trouble with? Must you use C++ or is C# an option , because honestly, you're going to find more examples with that. Using the XmlWriter classes is not terribly difficult for most things, and if you're flexible in your config file demands, you can leverage the System.Configuration namespace as well.
EDIT: Actually, I stand corrected, it was the afternoon. The remainder still stands.
#6
Re: Writing XML with Managed C++
Posted 03 August 2009 - 06:22 PM
The XmlWriter would be the way to go. However, that's an abstract class; the implementation you want is XmlTextWriter.
If you want to dump config data from a managed class, and perhaps read it back again, them you may also wish to look at System.Xml.Serialization and .NET Serialization in general.
If you want to dump config data from a managed class, and perhaps read it back again, them you may also wish to look at System.Xml.Serialization and .NET Serialization in general.
Page 1 of 1

New Topic/Question
Reply



MultiQuote





|