how to format my xml file?
-
i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space, for example: my file want to look like below in notepad: how to solve the problem?who can help me ,i tried some method but can not solve so well.
-
i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space, for example: my file want to look like below in notepad: how to solve the problem?who can help me ,i tried some method but can not solve so well.
-
i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space, for example: my file want to look like below in notepad: how to solve the problem?who can help me ,i tried some method but can not solve so well.
yes,that maybe ok.but how to control the layers,such like this, should i compute the tab numbers about each line? if i want to format the xml like this,what can i do? that is if the node is the leaf node,do not add a new line? is that possible?
-
yes,that maybe ok.but how to control the layers,such like this, should i compute the tab numbers about each line? if i want to format the xml like this,what can i do? that is if the node is the leaf node,do not add a new line? is that possible?
-
i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space, for example: my file want to look like below in notepad: how to solve the problem?who can help me ,i tried some method but can not solve so well.
I haven't found a way to do this in MSXML, but i know that Xerces can do it. Just use this:
DOMWriter *theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter(); theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
and possibly this:theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true);
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
-
i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space, for example: my file want to look like below in notepad: how to solve the problem?who can help me ,i tried some method but can not solve so well.
sharkmouse wrote:
how to solve the problem?who can help me ,i tried some method but can not solve so well.
IMXWriter Interface
"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 Support CRY- Child Relief And You
-
sharkmouse wrote:
how to solve the problem?who can help me ,i tried some method but can not solve so well.
IMXWriter Interface
"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 Support CRY- Child Relief And You
can you give me a simple example?