msxml

Change NodeName of an XML tag element using MSXML

南楼画角 提交于 2019-12-01 23:50:20
问题 I'd like to change the tag name of a MSXML XMLDOMElement, but unfortunately the nodeName property is read-only. Is there any straightforward way to do it, or have I to work around by doing some insert/replace and deep copy children? <xml> ... <oldTagName> ... sub-elements </oldTagName> <more xml> ... Should become <xml> ... <newTagName> ... sub-elements </newTagName> <more xml> ... 回答1: According to Document Object Model you can't rename a node. See: http://www.w3.org/TR/DOM-Level-2-Core/core

Change NodeName of an XML tag element using MSXML

感情迁移 提交于 2019-12-01 22:23:50
I'd like to change the tag name of a MSXML XMLDOMElement, but unfortunately the nodeName property is read-only. Is there any straightforward way to do it, or have I to work around by doing some insert/replace and deep copy children? <xml> ... <oldTagName> ... sub-elements </oldTagName> <more xml> ... Should become <xml> ... <newTagName> ... sub-elements </newTagName> <more xml> ... According to Document Object Model you can't rename a node. See: http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247 renameNode is possible in DOM Level 3 but not in MSXML library This is "universal"

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

半世苍凉 提交于 2019-12-01 04:48:53
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 browser. The page fails when executing ServerXMLHTTP.send() with the error: msxml3.dll error '80072efd' A connection with the server could not be established The code in question looks like this (the last line is failing): set xmlHTTP = server.CreateObject("MSXML2.ServerXMLHTTP") xmlHTTP.open "get", "http://stackoverflow.com", False xmlHTTP.send I have

How to make XMLDOMDocument include the XML Declaration?

对着背影说爱祢 提交于 2019-12-01 04:05:35
When an XMLDOMDocument saves itself, how can i get it to include the XML Declaration , e.g.: <?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-16" ?> <?xml version="1.0" encoding="UCS-2" ?> <?xml version="1.0" encoding="UCS-4" ?> <?xml version="1.0" encoding="ISO-10646-UCS-2" ?> <?xml version="1.0" encoding="UNICODE-1-1-UTF-8" ?> <?xml version="1.0" encoding="UNICODE-2-0-UTF-16" ?> <?xml version="1.0" encoding="UNICODE-2-0-UTF-8" ?> <?xml version="1.0" encoding="US-ASCII" ?> <?xml version="1.0" encoding="ISO-8859-1" ?> <?xml version="1.0" encoding="WINDOWS-1250" ?> The

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

我们两清 提交于 2019-12-01 02:54:28
问题 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 browser. The page fails when executing ServerXMLHTTP.send() with the error: msxml3.dll error '80072efd' A connection with the server could not be established The code in question looks like this (the last line is failing): set xmlHTTP = server

MSXML “The system cannot locate the resource specified”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 01:17:30
问题 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 Dim xmlHTTP As New MSXML2.XMLHTTP Dim response As New XmlDocument Dim xmlDoc As New MSXML2.DOMDocument Try xmlDoc.load(data) xmlHTTP.open("post", address, False) xmlHTTP.send(xmlDoc) If xmlHTTP.responseXML.xml <> String.Empty Then response.LoadXml

How to make XMLDOMDocument include the XML Declaration?

匆匆过客 提交于 2019-12-01 00:49:09
问题 When an XMLDOMDocument saves itself, how can i get it to include the XML Declaration , e.g.: <?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-16" ?> <?xml version="1.0" encoding="UCS-2" ?> <?xml version="1.0" encoding="UCS-4" ?> <?xml version="1.0" encoding="ISO-10646-UCS-2" ?> <?xml version="1.0" encoding="UNICODE-1-1-UTF-8" ?> <?xml version="1.0" encoding="UNICODE-2-0-UTF-16" ?> <?xml version="1.0" encoding="UNICODE-2-0-UTF-8" ?> <?xml version="1.0" encoding="US

XmlHttp Post in Excel VBA not updating website form

核能气质少年 提交于 2019-11-30 23:12:53
I routinely have to search the state of NV for unclaimed property and put the results in an Excel spreadsheet. I am trying to automate the process but I'm limited to using Excel 2010 and VBA. Below is the URL to the site I'm trying to submit a form using xmlhttp. URL: https://nevadatreasurer.gov/UPSearch/ I created a class to automate submitting forms on other websites but no matter what I enter in the postdata the form is never submitted. Below is my submission, and method to submit the form. Call to class: cXML.openWebsite "Post", "https://nevadatreasurer.gov/UPSearch/Index.aspx", _ "ctl04

Concatenating xml files

ⅰ亾dé卋堺 提交于 2019-11-30 21:10:36
I have several xml files, the names of which are stored in another xml file. I want to use xsl to produce a summary of the combination of the xml files. I remember there was a way to do this with the msxml extensions (I'm using msxml). I know I can get the content of each file using select="document(filename)" but I'm not sure how to combine all these documents into one. 21-Oct-08 I should have mentioned that I want to do further processing on the combined xml, so it is not sufficient to just output it from the transform, I need to store it as a node set in a variable. Here is just a small

Forcing MSXML to format XML output with indents and newlines

眉间皱痕 提交于 2019-11-30 15:57:19
问题 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: <?xml version="1.0"?> <!--WORKAPP 2011 Configuration file--> <profile version="1.0"><frmPlan><left>300</left><top>300</top><width>24600</width><height>13575</height></frmPlan><preferences><text1/><text2/><text3/><background_color/><grid-major-step-x>50</grid-major-step-x><grid-major