|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xml question - new line
List,
How do I add a new line to the XML displayed in the browser and in the file
opened by a text editor such as Notepad without changing all of the ints to
strings?
I have the following C++ code:
MSXML::IXMLDOMNodePtr pRootNode, pNode, pChildNode,pSubChildNode = NULL;
hr = xmlDomInterface.CreateEmptyDocument();
CHECKHR(hr);
int tmpNum;
//Create the root
pRootNode =
xmlDomInterface.CreateRootElement(tmpFileName.AllocSysString());
for(i=0;i<MAX;i++)
{
tmpNum = GetNumber(i);
//many other ints defined here
}
pNode = xmlDomInterface.CreateDOMNode(MSXML::NODE_ELEMENT,
infoNode[0].AllocSysString());
hr = pRootNode->appendChild(pNode);
CHECKHR(hr);
hr =
xmlDomInterface.SetAttribute(pNode,attribName[0].AllocSysString(),tmpNum);
CHECKHR(hr);
//many other ints added here
Thank you for your assistance.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








