缩进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[^]