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
5
votes
1 answer

Delphi: Invalid XML gets through MSXML validation

I've tried to revrite a JScript example at MSDN in order to validate XML against certain schemas. As a first attmempt, I've used the sl-valid.xml, sl-notValid.xml, and sl.xsd files as used in the example. My code goes as follows: procedure…
conciliator
  • 6,078
  • 6
  • 41
  • 66
5
votes
3 answers

Access Denied using MSXML

I have a VB6 backend for a classic ASP site. That VB then calls a web service on the same server using MSXML2.XMLHTTP. This works all of our servers but one. If I set the web service site to accept anonymous login it will work however if I force…
Ryan
  • 4,602
  • 8
  • 37
  • 43
5
votes
2 answers

VBScript, MSXML and Namespaces

Given the following XML:
Xetius
  • 44,755
  • 24
  • 88
  • 123
5
votes
1 answer

How to set the doctype of an XMLDOMDocument?

How can i set the doctype of an DOMDocument60 object? For example i try: IXMLDOMDocument60 doc = new DOMDocument60(); doc.doctype.name = "html"; except that IXMLDOMDocumentType.name is read-only: IXMLDOMDocumentType = interface(IXMLDOMNode) { …
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
1 answer

Unable load XML file with UTF-8 BOM marker using MSXML6

I have an XML file which has UTF-8 BOM marker(EF BB BF) at the beginning. It also contains encoding as . I am trying to load this XML file using IXMLDOMDocument::LoadXML which fails to load this document. If I…
Asha
  • 11,002
  • 6
  • 44
  • 66
4
votes
1 answer

Unable to load '@' symbol with loadxml

I tried to execute the following lines VARIANT_BOOL vBoolTestConnection; vBoolTestConnection=m_spXMLDom->loadXML(bstrInput.m_str); bstrInput has the following XML specifications. loadXML is returning false for the XML specified. bstrInput has '@'…
Prabhu
  • 723
  • 2
  • 10
  • 29
4
votes
2 answers

MSXML2 and .net - Legacy code

We have a legacy code that uses MSXML2 with vb6 that works fine. Lately we converted the project to VB.NET and we are experiencing issues with the msxml when the xml getting big - basically it hung. After googling the issue we found this article…
UshaP
  • 1,271
  • 2
  • 18
  • 32
4
votes
3 answers

Using entity 'constants' in an XML Schema

I am trying to create an XML schema in which a lot of types are sharing some 'magic numbers'. Instead of having to change my schema in several locations if/when these magic numbers change, I would like to pull them out into some kind of constant…
Mathias Falkenberg
  • 1,110
  • 1
  • 11
  • 25
4
votes
4 answers

Forcing MSXML to format XML output with indents and newlines

I am using MSXML 3.0 with Visual Basic 6 to store and retrieve configuration of my application. When saving the resulting DOMDocument to a XML file the root object gets rendered as a single very long line of text: