msxml6

MSXML2.DOMDocument60 crashes Excel

扶醉桌前 提交于 2019-12-12 16:04:12
问题 I have written a VBA macro to load and parse an XML file. This exact code has worked fine for awhile, but now it's no longer functioning. I've tested it on two different computers running Excel 2013 64-bit. The code it fails on is below: Public Sub RunClashImport() 'This subroutine will import an XML clash report, parse it, and write it to our workbook Dim iRow As Integer 'Get XML file Dim xmlFile As MSXML2.DOMDocument60 Set xmlFile = New MSXML2.DOMDocument60 The code continues if I comment

Add namespaces in IXMLDOMDocument root element using C++

不羁的心 提交于 2019-12-11 17:11:08
问题 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 need something like this: <entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"> <media:group /> <media:group /> </entry> I am trying with the following code: HRESULT hr = S_OK; IXMLDOMDocument *doc; IXMLDOMNode

paypal classic asp msxml error on windows server 2008

五迷三道 提交于 2019-12-11 11:42:43
问题 The following routine works fine from my Win 2003 server to send a pay request to Paypal. Set vXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0") vXMLHttp.setOption(3) = CERT_PATH strURL = KEYPOINT &"/AdaptivePayments/Pay" vXMLHttp.open "POST", strURL, false vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-USERID", API_USERNAME vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-PASSWORD", API_PASSWORD 'vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-SIGNATURE", API_SIGNATURE vXMLHttp

Errors using msxml6.h on visual c++

拜拜、爱过 提交于 2019-12-11 06:28:56
问题 In visual studio 2010 if I start a console project and #include this works fine, but if I start a win32 project and #include ,it returns many errors during compilation. Why? Error 1 error C2146: syntax error : missing ';' before identifier 'IXMLDOMImplementation' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\msxml6.h 49 1 provamsxml6 Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\microsoft sdks\windows\v7

Error C2011: 'MSXML2::IXMLDOMImplementation' : 'struct' type redefinition

主宰稳场 提交于 2019-12-10 14:32:53
问题 I am changing my C++ project, which was earlier in VC6 and now being migrated to VS 2008, to use MSXML 6 instead of the earlier MSXML 3. When the code was in VC6 we were using MSXML3 by importing it # import "msxml3.dll" This was replaced with # import "msxml6.dll" After this when I compile the project I get this and several other similar errors Error C2011: 'MSXML2::IXMLDOMImplementation' : 'struct' type redefinition The above error is in the msxml3.tlh file. 1) Why is msxml3 still being

Delphi 2007 IXMLHTTPRequest Time out issue

允我心安 提交于 2019-12-10 11:39:16
问题 I'm using Delphi 2007 and have imported MSXML6_TLB. I'm using IXMLHTTPRequest object to send request to server. Example: XMLHttp := CoXMLHTTP60.Create; try XMLHttp.open('POST', URL, False, EmptyParam, EmptyParam); XMLHttp.setRequestHeader('Content-Type', 'text/xml;charset=UTF-8'); XMLHttp.send(reqXMLDoc.XML.Text); //--> timeout in 10 secs if (XMLHttp.readyState = 4) then StrStream.WriteString(UTF8Encode(XMLHttp.responseText)); XMLHttp.send() keeps timing out if response takes more than 10

How to query default namespace with MSXML

女生的网名这么多〃 提交于 2019-12-04 17:03:39
问题 I have some XML: <?xml version="1.0" ?> <Project ToolsVersion="4.0"> <PropertyGroup Condition="'$(key)'=='1111'"> <Key>Value</Key> </PropertyGroup> </Project> Note : This isn't the actual XML i'm using, it's just prettier and shorter, and demonstrates the problem. Using MSXML i can query for nodes: IXMLDOMNode node = doc.selectSingleNode("//PropertyGroup/@Condition"); And it works fine: Condition="'$(key)'=='1111'" But that's not really the XML i have In reality the XML i have contains a

Reference to undeclared namespace prefix when parsing MSXML

泪湿孤枕 提交于 2019-12-02 22:55:13
How do I solve the Reference to undeclared namespace prefix: '%s' problem with Microsoft's msxml implementation? I'm using an XML feed from a government web-site that contains values i need to parse. The xml contains namespaces: <?xml version="1.0" encoding="ISO-8859-1"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:cb="http://www.cbwiki.net/wiki/index.php/Specification_1.1" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3c.org/2001/XMLSchema-instance" xsi:schemaLocation=

Padding number with leading zeros in XSLT 1.0

对着背影说爱祢 提交于 2019-12-01 04:11:36
We have a number in XML that can go up to 3 digits in a large XML file that has to be converted to fixed length text for loading into another system. I need to pad this with leading zeros to a length of 15 in the output (which is fixed length text) Examples: - 1 becomes 000000000000001 - 11 becomes 000000000000011 - 250 becomes 000000000000250 I tried this: <xsl:value-of select="substring(concat('000000000000000', msg:BankAccount/msg:Counter), 12, 15)"/> to get the 15 zeros at the beginning and take the substring but I must have made a mistake with the substring because in the results I get

How can I save an MSXML2.DomDocument with indenting? (I think it uses MXXMLWriter)

梦想与她 提交于 2019-11-29 19:29:26
问题 I have an instance of MSXML2.DomDocument. I wave to save it, with indenting. This code works, but does not indent: var dom = new ActiveXObject("MSXML2.DomDocument"); // fiddle with dom here dom.save(filename); I think I can use an MXXMLWriter object to inject indenting. How? 回答1: This oughta do it. function saveDomWithIndent(dom, filename) { var writer = new ActiveXObject("MSXML2.MXXMLWriter"), reader = new ActiveXObject("MSXML2.SAXXMLReader"), fso = new ActiveXObject("Scripting