c++ - Add extra namespace in node MSXML -
i want create node follows using msxml dom ( msxml6.h )
<name xmlns:a="http://example.com/a" xmlns:b="http://example.com/b" xmlns:c="http://example.com/c> <child>child content</child> .... </name>
msxml dom allows add 1 namespace of prefix using createnode()
how add namespaces? setproperty()
seems little different.
should use createattribute()
hack? okay? or better approach?
well no 1 ever answered this. i'm giving own solution here. may helps time.
instead of adding exact namespace, can add attribute like:
xmlns:ns="http://example.com/path/to/whatever"
where attribute name xmlns:ns
, value being http://example.com/path/to/whatever
and add this! done.
Comments
Post a Comment