Questions tagged [ixmldomdocument]
27 questions
5
votes
1 answer
How compare Two XML Node Structures Delphi
Is there a way to compare two xml nodes in Delphi?
I am using the MSXML parser and loading the xml into an IXmlDOMDocument2. The nodes are stored in an IXmlDOMNode.
I would be ok using Delphi's TXMLDocument if it helps. I do not want to…

sse
- 987
- 1
- 11
- 30
4
votes
1 answer
How do I add a namespace to an msxml DOMDocument?
How do I add a schema to an IXMLDOMDocument?
For example, I want to generate the XML:
I can…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
4
votes
2 answers
Search data in XML using IXMLDocument
Given the XML sample below;
How can I easily check if a given object exists?
How can I easily add an item of type group or user? (add a whole block)
group
…

Remko
- 7,214
- 2
- 32
- 52
3
votes
1 answer
Getting runtime error information from IXMLDOMDocument::transformNode function
I'm using IXMLDOMDocument::transformNode to apply an XSLT transform using C++ code that looks a little bit like this:
CComPtr spXMLDoc;
// load spXMLDoc
CComPtr spXSLDoc;
// load spXSLDoc
BSTR *pResult;
HRESULT…

Justin
- 84,773
- 49
- 224
- 367
3
votes
2 answers
Delphi, IXMLDOMDocument2, Load fails due to invalid character
Using Delphi 2009 and IXMLDOMDocument2
I receive "An invalid character was found in text content" error when loading XML into IXMLDOMDocument2. The character is 1B (in Hex) and is present within a CDATA section. Microsoft's XML viewer (IE) loads the…

Michael S.
- 1,771
- 15
- 20
3
votes
1 answer
Setting ProhibitDTD property using IXMLDOmDocument pointer
I am using IXMLDomDocument pointer to load my XML. the load fails saying DTD is prohibited. Could not find a function to set ProhibitDTD property.
example:
IXMLDOMDocument *pXMLDom = NULL;
CreateAndInitDOM(&pXMLDom);
{
…

KhannaKapil
- 75
- 8
2
votes
1 answer
How to get IXmlDomDocument2.XML to escape quotes properly?
I'm working on a problem where XML exported from our program doesn't escape quotes, (turning " into ",) leading to problems on the receiving end. It escapes &s and angle brackets just fine, but not quotes.
When I dug around in the XML export…

Mason Wheeler
- 82,511
- 50
- 270
- 477
2
votes
1 answer
Merging two XMLDOMDocuments
Is there any easy way in msxml to merge two xml documents (IXMLDomDocuments)?
I want to make one of the trees embedded as a child of the second one.
I saw that IXMLDomDocument3 offers importNode, but couldn't get it to work correctly. Is this the…

Danra
- 9,546
- 5
- 59
- 117
1
vote
0 answers
How to create a IXMLDOMDocument2, or otherwise add one of it's IXMLDOMElements to a [Object, Document]?
I'm getting an HIERARCHY_REQUEST_ERR (3) in IE9 only when I try to add an element from one document to the other.
I'm creating my document as follows:
var xmlDoc = document.implementation.createDocument("","root",null);
and trying to add to it as…

bodine
- 1,763
- 4
- 19
- 28
1
vote
1 answer
Saving a IXMLDOMDocument without end tag
Using MSXML via C++, when I call IXMLDOMDocument::save, empty XML elements will get an end tag, like this:
But I want it saved as this:
What do I need…

Johann Gerell
- 24,991
- 10
- 72
- 122
1
vote
1 answer
VBA display XML with hierarchy in cells
I am trying to format the below XML to print in the same hierarchical way it appears.
Parent node in the first cell, in next row, second column first child and its attribute if any and its child nodes in following rows.
Here is my…

Pat
- 535
- 1
- 16
- 41
1
vote
2 answers
Getting partiular element values
I need to parse a xmlobject and extract from the nodes two values I am able to get two values from those trees. I am stuck on how to traverse down into the node in the loop to grab a value that then will determine if I can grab a second value.
This…
user6060804
1
vote
0 answers
Can I add a linefeed or other formatting between MSXML2.IXMLDOMAttribute nodes?
I am trying to add white space when I export data from an Excel VBA DOMDocument to XML.
I can successfully do these between normal node and elements of any type, but I'd like to add a linefeed and some white space for indentation between two…

EJ Moreland
- 11
- 2
1
vote
1 answer
BSTR bstrRtf = 0xcccccccccccccccc on debugging ( = CXX0030: Error: expression cannot be evaluated)
I am using an IXLMDOMDocument to load a xml file from a stream using
IXMLDOMDocument *pDomDoc = pDomDoc->load(vtHtmlSource, &vfSuccess);
After loading the stream (containing the xml contents) it creates a style sheet in order to get the content…

Sss
- 1,519
- 8
- 37
- 67
1
vote
1 answer
Where does out-of-process MSXML IXMLDOMDocument::save save?
Where does MSXML IXMLDOMDocument::save save? I mean when it's called with a file name argument.
CComPtr< IXMLDOMDocument > doc;
p->get_doc( &doc );
doc->save( CComVariant( L"C:\\pathto\\mydoc.xml" ) );
Where will "C:\pathto\mydoc.xml" be?
Consider…

Alessandro Jacopson
- 18,047
- 15
- 98
- 153