Questions tagged [msxml]

MSXML are the Microsoft XML core services, which includes a full XML DOM implementation.

Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

Trouble with XML parsing in VBA: Extracting multiple Node values from NodeList

This XML document below is an invoice with order items. Various master data must be extracted for each order item. For the sake of simplicity, we will only consider the <ram:SellerAssignedID>. ...
smartini's user avatar
  • 415
-1 votes
1 answer
30 views

How to do transformNodeToObject with MS XML 6.0

In MS XML 4.0 you could have variables (using C++ here) IXMLDOMDocument2Ptr spDocSource; IXMLDOMDocument2Ptr spDocResult; IXMLDOMDocument2Ptr spDocStylesheet; and then load them up and do a ...
liftarn's user avatar
  • 446
0 votes
0 answers
31 views

Memory leak in code using MSXML and smart pointers

Something in the following code is leaking memory, but I can't find it. I've traced through it with a debugger, and even with a debug build, it won't step into the ref counting. So I've planted pairs ...
codesniffer's user avatar
  • 1,081
0 votes
2 answers
80 views

Parsing an XML string to XML and extracting node value in XSLT

I've been trying to parse an XML string to XML and extract the needed values using msxsl:node-set function in XSLT. Given below is the XSLT code <xsl:template name="parseXML"> <...
Nimrod's user avatar
  • 377
1 vote
1 answer
36 views

VBA XML transformation ignores included Stylesheets?

I am trying to transform an XML file into a Microsoft Word document, using VBA. However when I try to run the macro, I get an error stating: Error '-2147467259 (80004005)': The template 'example' ...
Ella's user avatar
  • 25
0 votes
1 answer
36 views

Get attribute value returns a string without namespace

Here is the sample of XML code : <xsd:element ref="cbc:UBLVersionID" minOccurs="0" maxOccurs="1"> Here is the C++ code that has to get the ref attribute's value : ...
aprotiere's user avatar
0 votes
0 answers
43 views

Can't add a schema to a schema collection

Introduction: I am not an expert of C++ nor of MSXML, this is why I am trying to start with things as simple as possible, such as taking some sample code of documentation and try modify some ...
aprotiere's user avatar
1 vote
1 answer
91 views

Exception isn't handled while occuring in a try block in C++

I have the following code : #import <msxml6.dll> using namespace MSXML2; ... IXMLDOMSchemaCollectionPtr pXS; IXMLDOMDocument2Ptr pXD = NULL; MSXML2::IXMLDOMParseErrorPtr ...
aprotiere's user avatar
1 vote
0 answers
73 views

Problem with MSXML6 classes and properties

I am using MSXML6 to validate some XML files against XSD schemas. According to this example and this documentation, the IXMLDomDocument has a property called schemas that is supposed to allow me to ...
aprotiere's user avatar
0 votes
1 answer
21 views

Identifier "IXMLDOMSchemaCollectionPtr" is undefined

I am trying to use the msxml library. Here's a sample of my code : #include <msxml6.h> ... int validate_cii() { // Create a schema cache IXMLDOMSchemaCollectionPtr pSchemaCache; ......
aprotiere's user avatar
0 votes
1 answer
60 views

How should I encode GIF file data in a multipart form using VBA MSXML2.XMLHTTP API?

I'm trying to use "Create Attachment" API in to Confluence: it "works" but the resulting file in confluence is not being served as an image: it just appears as text, so I believe ...
Simon's user avatar
  • 567
0 votes
0 answers
189 views

Error 429: Too many Requests when using MSXML.HTTP

I am trying to communicate to a WebAPI via MSXML, but whenever I try to request a response, my error-handle is called and it shows "Statuscode 429: Too many requests". When I paste the URL ...
n3tw4rri0r's user avatar
2 votes
2 answers
105 views

How to suppress unnecessary xml namespace prefix declaration?

I receive this xml <message xmlns="http://www.ns1.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <elem1 id="att1"> <elem2 i:nil="...
Owen Smith's user avatar
3 votes
1 answer
230 views

Delphi IXMLDOMDocument2 could not load XML file with % in the file name

I have encountered a strange bug while loading a file into IXMLDOMDocument2. The method load returns False, if the file name contains % and sets parseError to: The system cannot locate the resource ...
Jian Li's user avatar
  • 43
0 votes
0 answers
420 views

How to pass parameters in a MSXML2.xmlhttp POST?

I do not know how to send a request to a website, with a parameter set to a specific value, using MSXML2.xmlhttp. Edit as suggested: SSlinky in the comments states my trial is technically correct, ...
Claudio's user avatar
  • 61
0 votes
0 answers
2k views

MSXML 6 installation prerequisites

Good Day! Currently on one of our servers MSXML 4 is installed which is an obsolete version. Now we want to upgrade it to MSXML 6.0 SP2. However I could not get link from where I could install ...
anonymous's user avatar
1 vote
1 answer
89 views

VBA MSXML - Prevent inserting namespace URI into Xpath query result

I am trying to return verbatim text from an MSXML2 node. The XML in question is a KML file with the following structure: <?xml version="1.0" encoding="UTF-8"?> <kml ...
vbaToad's user avatar
  • 31
1 vote
1 answer
400 views

Classic ASP Security error with msxml2 80072f8f

I'm updating a legacy application to use a new payment REST service and I'm having trouble with a POST request. The code runs fine on a Windows 10 development machine but fails on Windows Server 2008 ...
RikRak's user avatar
  • 908
0 votes
0 answers
77 views

msxml6.dll error '800c0005' The system cannot locate the resource specified [duplicate]

EDIT 1: According to my domain provider, the problem is not coming from our server. they tried accessing the URL in the request from a browser physically on the server my website is on and they say it ...
Noam Smadja's user avatar
  • 1,015
1 vote
1 answer
87 views

Is there any other way in VBA other than Msxml2.ServerXMLHTTP.6.0/3.0 to make a HTTP GET request?

I am trying to make an API call in my VBA macro, using the below code - Dim objRequest As Object Set objRequest = CreateObject("Msxml2.ServerXMLHTTP.6.0") With objRequest .Open "...
kartik's user avatar
  • 552
0 votes
0 answers
853 views

Msxml2.ServerXMLHTTP.6.0 & MSXML2.DOMDocument60 won't work on a particular Excel 2013 version

I am using the below code to execute an API request from my macro in MS Excel 2016 - Dim objRequest As Object Set objRequest = CreateObject("Msxml2.ServerXMLHTTP.6.0") 'nothing happens after ...
kartik's user avatar
  • 552
1 vote
0 answers
165 views

Unable to submit large base64 fields using VBA

I am trying to submit base64 string converted file to a rest API using Excel VBA / macro. The file upload is working fine for less than 5kb files (image and pdf). There is no restriction on the server ...
Uttam Kumar's user avatar
1 vote
1 answer
684 views

Can't use HTTPS sites with VFP9/MSXML2.XMLHTTP

I'm fixing some really old software. It's written in VFP9 and uses MSXML2.XMLHTTP for accessing web APIs. It works fine using unsecured (HTTP) sites, but not HTTPS sites, which is required. My ...
MikeHelland's user avatar
  • 1,151
0 votes
1 answer
117 views

Insert newline before XML root node to get formatted output

I create XML documents by creating a full-blown in-memory DOM model and storing it to a file by using the IXMLDocument::save method. To format these documents, I use the trick with creating a text ...
Ilia's user avatar
  • 425
0 votes
1 answer
601 views

How to load MSXML2.DOMDocument object

I have Word VBA code that is supposed to create an Msxml2.DOMDocument object and load an Xml file into it: Set XDoc = CreateObject("MSXML2.DOMDocument") XDoc.async = False: XDoc....
Sarah Wolicki's user avatar
0 votes
0 answers
475 views

Getting error "user-defined type not defined"

I am using one existing VBA macro code to convert the xml data into table format and Vise versa from the excel sheet. It was working fine on windows 7. But in windows 10 I am getting the error saying ...
harigovind's user avatar
0 votes
1 answer
33 views

msxml4 parseError undefined?

I have a Classic ASP website that uses a DLL to create a Msxml2.DOMDocument object and returns that to the browser (called from an jQuery ajax call). I run the website on two computers. Both have the ...
Developer Webs's user avatar
2 votes
2 answers
982 views

How can Microsoft XML Parser 4.0 be installed from Inno Setup?

I need to install Microsoft XML Parser 4.0 from Inno Setup. How can that be done? I was given a task to embed MSXML in the installer of ours. It's a proprietary piece of software our company makes (...
JConstantine's user avatar
  • 1,030
2 votes
1 answer
515 views

How can I check in Inno Setup if MSXML 4.0 is installed?

What I need to do is to check if Microsoft XML Parser 4.0 SP3 (MSXML) х64 is installed and if not, install it. This is for old systems where MSXML is probably not installed by default. How can that be ...
JConstantine's user avatar
  • 1,030
2 votes
1 answer
177 views

CDATA not included in my XML when using xsl

I am currently working on a small project to export data from MS Access into an XML format via VBA. I have a section where I am supposed to add code with the CDATA tag. However, when I try to ...
Mimi's user avatar
  • 97
2 votes
1 answer
368 views

MSXML always adding Namespace to Elements

I want to create an XML using MSXML in VBA. The target output is pretty basic: <Main xmlns="http://www.myurl.com/xml"> <Info> <BaseData> <...
J0eBl4ck's user avatar
  • 415
2 votes
1 answer
324 views

How does Delphi's TXMLDocument decide which MS XML version (3.0, 6.0 or even 4.0) to use?

I have a program written in Delphi 6 that uses TXMLDocument, and during runtime it uses the MS XML 3.0 parser. But this program reports a The specified module could not be found error on one computer, ...
TomR's user avatar
  • 2,788
1 vote
0 answers
395 views

MSXML For Post (Classic ASP)

I am trying to make a simple form post to a remote server using MSXML and although this should be so simple I can't figure out why it fails. Let me explain... CLIENT SCRIPT... response.Buffer = true ...
Shawn Ives's user avatar
0 votes
1 answer
631 views

The element 'xsl:stylesheet' is used but not declared in the DTD/Schema

I'm trying to convert an XSL-FO document to HTML using the "fo2html.xsl" file from RenderX. That was the suggestion from this StackOverflow post: Converting XSL-FO to HTML I'm using the ...
David's user avatar
  • 76
0 votes
1 answer
398 views

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 ...
DevPy's user avatar
  • 429
0 votes
1 answer
331 views

Send custom user-data-dir when interating with ChromeDriver and MSXML2.ServerXMLHTTP (VBA)

I'm trying to open an instance of Google Chrome using ChromeWebDriver and MSXML2.ServerXMLHTTP on VBA. The code works fine to open a new instance of the browser, but when I try to send to the ...
tdmsoares's user avatar
  • 533
4 votes
2 answers
558 views

VBA with XSLT to pretty print XML with end tags in the same line

<Root ID="123" Name="Board"> <Element1 name="AAA"/> <Element2 name="BBB"/> <Element3 name="CCC"/> <...
MAR's user avatar
  • 61
0 votes
1 answer
330 views

Why is it not possible to access a public website?

This url can not be opened with URL-copy&paste it shows only an error. I have tried in vain to get access through MSXML2.XMLHTTP, same result! This is my code: Sub GetDataWebsite() Const URL = &...
Jasco's user avatar
  • 225
1 vote
1 answer
467 views

Import XML data using Excel VBA

I'm trying to import specific data from and XML file to an Excel sheet. The code I'm using is this. Dim oXMLFile As New DOMDocument60 Dim books As IXMLDOMNodeList Dim results() As String Dim i As ...
FredrikS's user avatar
2 votes
2 answers
706 views

How to handle server address not resolved in XMLHTTP request?

I used the following code to check if a RSS url responds in 5 seconds so I can consume the RSS feed however trying to open the URL causes error when the target URL could not be resolved. What more I ...
Ali Sheikhpour's user avatar
1 vote
0 answers
442 views

classic asp : MSXML3 dll ServerXMLHTTP

I am using below code Set objXML = Server.CreateObject("MSXML3.ServerXMLHTTP") objXML.Open "GET", sendstring, false objXML.Send() Its giving error on objXML.Send on localhost ...
user2745580's user avatar
0 votes
2 answers
1k views

How to download a binary file in T-SQL from a URL

I am trying to create a SQL Server stored procedure to download an unknown binary file type (usually either jpg, pdf, zip, rtf, or doc) from the specified URL. When this is executed, I have verified ...
Bryan Williams's user avatar
0 votes
0 answers
343 views

Using recursion and MSXML Excel VBA to find child nodes

I am getting an error 438 - object doesn't support this property or method when findChildren() is called. It doesn't seem to have issues on how i declared or set my variables so not sure why it doesn'...
necroncryptek's user avatar
0 votes
1 answer
248 views

How to preserve and access processing instructions in MSXML IXMLDOMDocument2

I have this problem, that I need to access processing instruction in MSXML IXMLDOMDocument2 interface. Is it possible to do XMLDocument.load() and have access to xml-stylesheet instruction? If it is, ...
NevTon's user avatar
  • 265
0 votes
0 answers
310 views

Zoom Meeting API - msxml6.dll error '80070005' Access is denied [duplicate]

I am trying to update data in a Zoom meeting via the API with the following Classic ASP code: 'Get access token access_token = getJWTToken() strState = "nsw" varStart = dateFormat(strStart,...
Benzine's user avatar
  • 486
1 vote
0 answers
41 views

How to check URL health synchronized without timeout error? [duplicate]

I am trying to write a RSS reader in vbscript. To make sure that the RSS url exists or is healthy I use the following code: function testUrl(url) testUrl=0 Set o = CreateObject("MSXML2....
Ali Sheikhpour's user avatar
0 votes
0 answers
43 views

How can I print "<" or ">" sequence in L" "

Build in c++ How can I print "<" or ">" sequence in L" " ... IXMLDOMDocument *pXMLDom = NULL; ... createTextNode(L"<!-- <example> -->",...
Cold_Water's user avatar
0 votes
1 answer
135 views

Use IXMLDOMNode_insertBefore in C

I am currently developing a pure C application using win32 and some MSXML to handle setting files. My file structure resembles this: <doc> <Element1> <A></A> <C>...
Baldrsc's user avatar
0 votes
0 answers
380 views

Add reference to using MSXML2

I would like to add reference to using MSXML2; So that I can use XMLHTTP xmlhttp = (XMLHTTP)new XMLHTTPClass(); I tried adding the ref to C:\Windows\System32\msxml3.dll but at my ref i keep ...
Zorev Gnoz's user avatar
2 votes
1 answer
1k views

getElementsByTagName returning zero elements with DOMDOCUMENT60 in VBA

I have a piece of VBA code that worked perfectly in an older environment, using MSXML2.DOMDOCUMENT objects. However, now that I have had to turn these into MSXML2.DOMDOCUMENT60 objects (because Excel ...
StuartR143's user avatar

1
2 3 4 5
13