I am adding the ability to save as XML to several native C++ classes. I am looking for something in C++ that performs the same job as XmlConvert from .Net.
double d = 45.5454545;
xmlWriter.WriteAttributeAtring(XmlConvert.ToString(d));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Consider using boost XML serilization.
If using boost is out of question you can simply borrow the idea provided your objects are very simple and don’t have references to each other.
Unfortunately C++ doesn’t have reflection is it impossible to do serialization easily without handling each class.