缩进vc ++和msxml解析 [英] Indent in vc++ and msxml parsing
本文介绍了缩进vc ++和msxml解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将MSXML Parser与vc ++一起使用,以解析一个xml文件以构造树控件,然后返回另一个xml文件.一切都很好,但是通过MSXML创建的xml文件中的缩进效果不好.所有节点都在一行中创建.如何缩进它们?
问候,
venkatanaraytana
Hi,
I am Using MSXML Parser with vc++ to parse a xml file to construct a tree control and the back to another xml file.Everything is fine,but the indention in the xml file created through MSXML is not good. All the nodes are created in a single line.How to indent them?
Regards,
venkatanaraytana
推荐答案
有一个indent
属性,您可以将其设置为true
(假设您正在编写库中的一个writer类). />
[更新]
~~~~~~~~~~~~~
请参阅 http://msdn.microsoft.com/en-us/library/ms764689(v = vs.85).aspx [
There is anindent
property that you can set totrue
(assuming you are writing one of the writer classes in the library).
[Update]
~~~~~~~~~~~~~
See http://msdn.microsoft.com/en-us/library/ms764689(v=vs.85).aspx[^]
我们正在使用样式表转换,以漂亮"地格式化传出的XML.
在stackoverflow上看到此线程:
StackOverflow [
we''re using a stylesheet transform to "pretty" format the outgoing XML.
see this thread on stackoverflow :
StackOverflow[^]
这篇关于缩进vc ++和msxml解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文