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
0
votes
0 answers

unable to cast com object (msxml) to system.xml object

i want to upgrade my project from msxml6 to system.xml. The msxml component is coming from vb script using interfaces as type object(i.e com_object). Now the problem is when i try to cast this com object to the System.xml component it throwing en…
Kapil Sen
  • 3
  • 1
0
votes
1 answer

Is MSXML with xslt and substring-before newline / linebreak handling inconsistent?

Note: Actual question at the very end. I'm thoroughly confused by what I see while trying to juggle newline/linebreaks in a source XML file via xslt when comparing MSXML (IE11) with libxml2 / Firefox. Essentially, both libxml2 and Firefox implement…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
0
votes
1 answer

Clearing .Schemas of a IXMLDOMDocument2?

How do I clear the .Schemas of a IXMLDOMDocument2 after I have added a schema to a IXMLDOMSchemaCollection2 then assigned to the .Schemas of the IXMLDOMDocument2? So I am trying to valdiate a xml against multiple XSD one by one, but it seems the XSD…
Led
  • 1,021
  • 1
  • 8
  • 11
0
votes
2 answers

How to handle failed XPATH lookup in MSXML from AutoIT?

I am parsing a piece of XML returned from a Web API. I am looking for a particular node. If that node does not exist, according to the MSXML documentation, it returns null. The problem is, I don't know how to check for null in AutoIT. I have read…
mydoghasworms
  • 18,233
  • 11
  • 61
  • 95
0
votes
0 answers

Using XML file data in arithmetic calculations by using MSXML

I am trying to read node values and do some arithmetic calculations. This 174 is the line and I want to read 174 and do some arithmetic calculations e.g. using as an integer. The code below is created for string format. I tired…
garnettburak
  • 143
  • 1
  • 9
0
votes
0 answers

MSXML getElementsByTagName() does not work with any TagName

i use MSXML getElementsByTagName("TagName") to read out an XML file. It works fine in most caes. However I can not read some fields. A sample xml file i use can be found here: http://pastebin.com/idBTN5Vb When I read out the nodes "AreaPercent", it…
Martin
  • 659
  • 7
  • 14
0
votes
2 answers

Memory Leaks in MSXML6 XML Parsing

I have written MFC DLL that loads XML file or XML string and parse it. It populates one map with xml elements. I am using MSXML2::DOMDocument60 and could parse whole xml. But if I iterate whole process within loop (200-500 times) I could see huge…
Pankaj
  • 234
  • 3
  • 14
0
votes
1 answer

How to pass a variable to the IXMLDOMDocument::save method in MSXML?

everyone. I know Microsoft have given an example about the save method of IXMLDOMDocument like this: http://msdn.microsoft.com/en-us/library/windows/desktop/dd874226(v=vs.85).aspx But when I changed the parameter of save to a variable like CString…
hsluoyz
  • 2,739
  • 5
  • 35
  • 59
0
votes
1 answer

Migration from MSXML to Xerces

I am planning to port my application from Windows to Linux, currently my application uses MSXML for XML parsing. I have decided to use Xerces XML parser to provide a cross platform solution. My code size is too big and I do not want to touch all the…
GJ.
  • 4,518
  • 1
  • 19
  • 26
0
votes
1 answer

MSXML Memory Leak

I have to deal with a legacy application that uses MSXML to write measurement data to a simple XML file. Basicly, this is what's happening: MSXML2::IXMLDOMDocument2Ptr pXmlDocument; HRESULT comResult = CXMLUtil::createXMLDocument(pXmlDocument); //…
Matz
  • 583
  • 1
  • 6
  • 21
0
votes
1 answer

Late binding to avoid "User defined type not defined" error

In Word 2010 macro VBA, i set Set objXML = New MSXML2.DOMDocument30 to get xml type Word.officeUI file. But when i call the sub that handling Word.officeUI file user defined type not defined error rised. I don't want to add any necessary .dll or…
caglaror
  • 459
  • 1
  • 13
  • 28
0
votes
1 answer

How to manually create msxml document in IE10

I looked at this question and I understand that when dealing with an ajax response, it is possible to instruct IE10 to create an msxml document instead of a native XML document. This is in order to use legacy xpath methods such as…
Yoni
  • 10,171
  • 9
  • 55
  • 72
0
votes
0 answers

print elements by multiple tag names - msxml - xml parsing in C++

I am trying to parse xml file using MSXML , But I want to parse particular tags(nodes) not all nodes. Below two lines additional to the whole for xml parsing , gives output of all nodes. If I replace L" " to L"tag_name" ... I will get the results…
May
  • 207
  • 2
  • 7
0
votes
1 answer

Upload medium or larg file size in host (images,multimedia files,...) without ftp protocol

How can make a uploader file in vb6 to work easyly and can be uploade files into host. For example (images or multimedia files or other format) and size > small size files for exampe > 500kb or 1 mb , 2 mb or upper sizes . Please help me to can…
barnameha
  • 371
  • 2
  • 17
0
votes
1 answer

What is the vb6 IXMLDOMNode equivalent in C#

What is the C# equivalent of Public Function getXMLNode() As MSXML.IXMLDOMNode? Here is a vb6 example where IXMLDOMNode is used to get the XML from the node. Here is a C# example where IXMLDOMNODE is used. However, when I write public IXMLDOMNode…
HoKy22
  • 4,057
  • 8
  • 33
  • 54