Questions tagged [msxml6]

MSXML is a set of services that allow applications written in JScript, VBScript, and Microsoft development tools to build Windows-native XML-based applications. MSXML6 is the latest MSXML product from Microsoft.

Microsoft XML Core Services (MSXML) is a set of services that allow applications written in JScript, VBScript, and Microsoft development tools to build Windows-native XML-based applications. It supports XML 1.0, DOM, SAX, an XSLT 1.0 processor, XML schema support including XSD and XDR, as well as other XML-related technologies.

131 questions
0
votes
0 answers

Getting timeout when running a stored procedure which makes rest API calls - How to increase timeout?

A customer is on SQL Server 2017 and is executing a stored procedure that makes an API call to a server and fetches data. Sometimes (when the API call is intensive on the remote server and takes too long to return data) the call times out at the…
0
votes
1 answer

Remove XML declaration using msxml6/IXMLDOMDocument2

I want to remove XML declaration only from an XML using C++/COM- using the IXMLDOMDocument2 interface of msxml6 How can I achieve this ?
Angshuman Agarwal
  • 4,796
  • 7
  • 41
  • 89
0
votes
1 answer

Add namespaces in IXMLDOMDocument root element using C++

I know there is an example in stackoverflow using JS, but I need to accomplish this using C++ and by a strange reason I am not able to add the namespace to the root element using put_nodeValue() if the attribute name is prefixed with "xmlns:". So, I…
kiewic
  • 15,852
  • 13
  • 78
  • 101
0
votes
0 answers

Accessing attribute values in an XML structure- C++ using MSXML6

I have this XML file below: Gambardella, Matthew XML Developer's Guide Computer 44.95 2000-10-01
0
votes
1 answer

Add another XML file to existing XML file using MSXML C++

I am working on the project, where I am using MSXML parser to create and parse the XML documents. The existing implementation uses CMarkup and it has a function to add another XML document to existing document using addsubdoc(xmlfile) but When I am…
DevPy
  • 439
  • 6
  • 17
0
votes
1 answer

MSXML 6, User/PW Auth, ResolveExternals

If one must load and parse an XML resource from a user/PW-protected URL you cannot just use an MSXML DOM.Load() as far as I can tell. There is no place to specify the credentials. Yet if you use XMLHTTPRequest to obtain and parse the resource into…
Bob77
  • 13,167
  • 1
  • 29
  • 37
0
votes
1 answer

Text output from XML with XSLT with XSLT 1.0 (MSXML 6)

I have a problem I cannot solve with xslt 1.0. A solution for XSLT 2.0 was already given and works fine (see further below). For each layer grouped by STRAT_ZONE the minimal values from DEPTHFROM_ZONE and maximum value DEPTHTO_ZONE are…
lilaaffe
  • 127
  • 11
0
votes
1 answer

Extract namespace attribute from elements of xml

There is XML file (shown below). I wonder how can I extract namespaces (xmlns attribute) from AppHdr and Document elements using MSXML6.0 parser. I can express path to namespace attribute of AppHdr as "Messages/:AppHdr/namespace::", but it works in…
Karas
  • 3
  • 3
0
votes
0 answers

msxml loadXML API error handling ambiguity

I have a problem with understanding msxml API, particularly the 'IXMLDOMDocument::loadXML' function. According to the documentation, function returns HRESULT. When succeeded, it should return 'S_OK' which is a zero, also according to the…
b00rt00s
  • 114
  • 5
0
votes
0 answers

Problem with Open method of MSXML2.ServerXMLHTTP.6.0 PATCH request

I have been using MSXML2.XMLHTTP.6.0 successfully with my Excel VBA script for a couple years, for both GET and POST requests. The POST request looks like: Dim zipService as Object Dim Query As String Dim Body As String Set zipService =…
0
votes
0 answers

MSXML6.lib import doesn't seem to be working properly. CODE BLOCKS, MSXML2.h?

On a 64 bit system, Windows 10, using CODEBLOCKS with the MingW/GCC compiler. I need to use the MSXML6.lib library and include the msxml6.h header. The library is included with a current Windows SDK (which I have installed). I have the appropriate…
Dan
  • 758
  • 6
  • 20
0
votes
2 answers

Call to transformNodeToObject fails

I am newbie to xml and xslt area. I have written simple COM utility to transform xsl using xslt. But is failing at transformNodeToObject function call. I am using visual studio 15. As you can see i am using the msxml6.dll import. There was another…
user3903854
  • 11
  • 1
  • 5
0
votes
0 answers

Memory leak in msxml6, MRE

MRE: #include #include #include #include int main() { std::string strFileName( "xml.xml" ); std::ofstream outFile( strFileName ); outFile <<…
manuell
  • 7,528
  • 5
  • 31
  • 58
0
votes
0 answers

Why does IXMLDOMDocument2->get_documentElement give me IXMLDOMElement * with a refcount set to 2?

I can't understand why a Smart Pointer seems to be created with an initial Ref Count set to two (2), with no apparent memory leaks afterward. MRE: #include #include #include int main() { bool bCoIntOk =…
manuell
  • 7,528
  • 5
  • 31
  • 58
0
votes
1 answer

Unexpected escaped CRs inserted with XSLT output-method="text" transform

My question here is what the logic of the following behavior might be, or if it's a bug (in MSXML6 under Windows) even what failure of logic could underpin such a bug. Consider the input XML file.
dxiv
  • 16,984
  • 2
  • 27
  • 49
1 2 3
8 9