Questions tagged [msxml]

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

MSXML are the Microsoft XML core services, which include a full XML DOM implementation, support for SAX, XML 1.0, XSLT 1.0, XSD and XDR schemas and other technologies depending on the version (for instance, XPath is not supported in all versions).

There are many versions of MSXML, of which some have more or less subtle differences.

The most current one is MSXML 6 SP2 or SP3, depending in your operating system their version numbers are:

  • 6.20.2003.0 for Windows XP SP2, Windows 2003 SP1 and Windows 2003 R2
  • 6.20.1103.0 for Windows XP SP3, Windows 2003 SP2 and Windows 2003 R2 SP1
  • 6.30.* for newer versions of Windows

Note that MSXML 4 and MSXML 3 are also still supported.

When using MSXML for XPath, be sure to set the SelectionNamespaces Property (as this article shows) to make sure your XML namespaces will work.

Links:

616 questions
9
votes
3 answers

What became of MSXML 4.0?

i have a dependancy on MSXML 4.0. Microsoft has a page that gives the CLSID and ProgIDs of various MSXML 4.0 objects: Symbolic Name: CLSID_DOMDocument40 GUID: {88d969c0-f192-11d4-a65f-0040963251e5} ProgID:…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
8
votes
7 answers

MSXML3.dll 80072efd and 800c0005 errors executing ServerXMLHTTP.send in classic ASP on Windows 7

I have a classic ASP page that I am trying to debug on IIS on Windows 7. The page works fine on another machine running Windows Server 2003 on a different network. Also, on the Windows 7 machine I can successfully open the URL in question in a…
Dan
  • 7,446
  • 6
  • 32
  • 46
8
votes
2 answers

MSXML "The system cannot locate the resource specified"

I have a function which uses MSXML to post an XML document which yesterday started failing despite no change being made to the code. The function is as follows: Public Function PostFile(ByVal address As String, ByVal data As Byte()) As xmldocument …
Macros
  • 7,099
  • 2
  • 39
  • 61
8
votes
2 answers

Using MSXML2.XMLHTTP in Excel VBA to extract large amounts of text data from website

I am trying to download historical stock price data from finance.yahoo.com for 1000s of stocks. The website only displays 60 days of data on a single page so I have to loop through the time period that I am downloading for along with the loop for…
sinhars82
  • 124
  • 1
  • 1
  • 8
8
votes
1 answer

XSD: Define an element with any name

Because of limitations of certain systems, we need to use XMLs that are formatted a bit inconveniently. Those we need to transform into a convenient form. The question: how do I define in an XSD schema an element that has the following…
GSerg
  • 76,472
  • 17
  • 159
  • 346
8
votes
1 answer

Looping through XML using VBA

I'm trying to loop through the following simple XML using VBA, with the ultimate goal to be able to easily extract the data in sequence. 1.1
Jiminy Cricket
  • 1,377
  • 2
  • 15
  • 24
8
votes
2 answers

Default encoding for variant bstr to std::string conversion

I have a variant bstr that was pulled from MSXML DOM, so it is in UTF-16. I'm trying to figure out what default encoding occurs with this conversion: VARIANT vtNodeValue; pNode->get_nodeValue(&vtNodeValue); string strValue =…
Paul
8
votes
5 answers

MSXML from C++ - pretty print / indent newly created documents

I'm writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/KB/XML/JW_CXml.aspx. Works great except that when I create a new document from code (so not load from file and modify), the result is…
Roel
  • 19,338
  • 6
  • 61
  • 90
8
votes
2 answers

MSXML VBA: Validating XML against XSD: "The '' namespace provided differs from the schema's targetNamespace."

I’m trying to validate an .XML file against an .XSD file with MSXML 6.0 DOM but on executing the code I’m getting this error message: Test.xsd#/schema/targetNamespace[1] "The '' namespace provided differs from the schema's…
David Grant
  • 83
  • 1
  • 1
  • 3
8
votes
5 answers

How to make XMLDOMDocument include the XML Declaration?

When an XMLDOMDocument saves itself, how can i get it to include the XML Declaration, e.g.:
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
7
votes
4 answers

schema validation with msxml in delphi

I'm trying to validate an XML file against the schemas it references. (Using Delphi and MSXML2_TLB.) The (relevant part of the) code looks something like this: procedure TfrmMain.ValidateXMLFile; var xml: IXMLDOMDocument2; err:…
Miel
  • 3,347
  • 2
  • 26
  • 39
7
votes
2 answers

How to get MSXML IXMLHTTPRequest to handle HTTP redirects?

Situation: 1) I need to make HTTP[S] networking calls in C++ on Windows for our DLL. 2) Need to support at least XP (I guess SP3 is ok) 3) no ATL, no MFC, no IE Question: I recently switched from Boost cpp-netlib to using MSXML's IXMLHTTPRequest…
ryanb
  • 159
  • 10
7
votes
1 answer

The server name or address could not be resolved, why?

i using below code in my asp page of (www.test1.com) url= "http://www.test1.com/test.asp" dim http, pxml, http_response set http = server.CreateObject("MSXML2.ServerXMLHTTP.3.0") http.open "GET", url, 0 http.setrequestheader…
user475464
  • 1,741
  • 10
  • 26
  • 38
7
votes
2 answers

How to VBA callback function when XMLHTTP onTimeOut?

I'm trying get xml data from webserver to excel, then I wrote a sendRequest function to call in excel =sendRequest("http://abb.com/index.php?id=111") When web-server having trouble, cannot connect or cannot find, excel is not responding, it was…
Davuz
  • 5,040
  • 13
  • 41
  • 61
6
votes
1 answer

How determine if MSXML6 is installed in a system using Delphi?

I have an application which depends of the MSXML6, in most of the machines when the application is deployed this package is already installed, but in a few cases the MSXML6 is not installed, The question is how I can check if the MSXML 6 is already…
Salvador
  • 16,132
  • 33
  • 143
  • 245
1
2
3
41 42