writing an xml file.
-
HI I don`t know how to write in an xml file through mfc. The whole file has to be written. Also, the file has to be created from mfc code. I am working on VS 6 in windows XP environment. Thanx a lot
-
HI I don`t know how to write in an xml file through mfc. The whole file has to be written. Also, the file has to be created from mfc code. I am working on VS 6 in windows XP environment. Thanx a lot
Can you use the
DOMDocument
orIXMLDOMDocument2
interface?
"Take only what you need and leave the land as you found it." - Native American Proverb
-
Can you use the
DOMDocument
orIXMLDOMDocument2
interface?
"Take only what you need and leave the land as you found it." - Native American Proverb
http://www.codeproject.com/soap/markupclass.asp in this article, after creating the xml,u can store the xml in a CString (CString csXML = xml.GetDoc();) if u r creating the File using MFC ie CFile char* ptoxml=csXML.GetBuffer(csXML.GetLength()+1); CFile::Write((LPVOID)ptoxml,csXML.GetLength()+1);
-
HI I don`t know how to write in an xml file through mfc. The whole file has to be written. Also, the file has to be created from mfc code. I am working on VS 6 in windows XP environment. Thanx a lot
as Sunit5 has mentioned MarkUp class is good alternative for writing and reading XML file but.. By My Personel Preferenc would you learn XMLDOM object ( if time permits you) other wise MARKUP class is good alternative
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV