msxml

How do I append elements with duplicate names using MSXML & C++?

吃可爱长大的小学妹 提交于 2019-12-11 11:36:58
问题 I am write some code to update a XML DOM using MSXML4 & C++. I need a method that appends a child element to a parent element. The code I have written below works until the title of the child matches the title of another child under the parent. I cannot change the title of the children so I need to find a way to append them to the parent. Can anyone provide some guidance? // this call creates '<parent><child/></parent>' AppendChild("/root/parent", "child"); // this call attempts to create '

MSXML2.XMLHTTP Request to validate entered URL in ASP Classic

我们两清 提交于 2019-12-11 09:26:10
问题 Thanks in advance for any help received. I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works. There are 3 possible outcomes I want to check for: A status of 200 - OK, A status of 500 - Server Error, Or a status of 404 - page not found. When executing the following code in ASP classic I get a status code of 12007 when I should be getting 404. Is this because it can't find a webserver to return a code of 404? Function CheckURL(vURL) ON

VBA code to get Near By location from url to excel

我们两清 提交于 2019-12-11 06:35:29
问题 I am trying to get Connectivity,Infrastructure and Neighborhood information from url to excel below is the vba code which i have tried but i am getting error-Run Time Error '91': Object variable or with block variable not set. Sub test() Dim oHtml As HTMLDocument Dim oElement As Object Set oHtml = New HTMLDocument With CreateObject("WINHTTP.WinHTTPRequest.5.1") .Open "GET", "https://www.99acres.com/dasnac-the-jewel-of-noida-sector-75-noida-npxid-r14046?src=NPSRP&sid

Detecting incoming XML “CR” character, then converting to <br/>

放肆的年华 提交于 2019-12-11 03:43:14
问题 I am using XSLT inside of ASP, it's serviced by msxml6. Incoming XML loaded to the object has "carriage returns" which I think may be ASCII 10. I would like to transform those to <br/> in the output. I am trying to detect in the incoming XML, but can't seem to find that. I've tried Javascript (JScript inside of ASP), to no avail. It's coming from MS Excel spreadsheetML, interestingly. Ideas on: how it's encoded in the XML object inside msxsm6 how to detect, then replace with <br/> ? Thank

Parsing an xml document at a remote URL using VB 6.0

丶灬走出姿态 提交于 2019-12-10 23:18:14
问题 I am trying to parse through the contents of an xml file resident on a remote server in visual basic 6.0 using the MSXML2.DOMDocument class. I am using the Load method of the MSXML2.DOMDocument class to pass in the url. The url is of the form http://<server>/ABC.xml , however, the server requires user credentials for accessing the file. How do I pass in user credentials using this class or another supporting class? 回答1: You can use http://<username>:<password>@<server>/ABC.xml in many cases,

Is there a way to modify the style sheet so that it transforms an XML document with empty tags as <tag />?

你说的曾经没有我的故事 提交于 2019-12-10 16:38:35
问题 I have extracted some code from codeproject to reindent an XML document. Does anyone know how I can modify the stylesheet to make it so that the transform of an XML file will result in empty tags showing up as <tag /> instead of <tag></tag> ? // http://www.codeproject.com/Articles/43309/How-to-create-a-simple-XML-file-using-MSXML-in-C MSXML2::IXMLDOMDocumentPtr FormatDOMDocument(MSXML2::IXMLDOMDocumentPtr pDoc) { LPCSTR const static szStyleSheet = R"!(<?xml version="1.0" encoding="utf-8"?>)!"

string to xmlNode delphi (or how to add an xml fragment to TXMLDocument)

时间秒杀一切 提交于 2019-12-10 15:24:28
问题 I Have a few text strings that contain well formed XML. I would like to be able to (1) turn these strings into IXMLNodes then (2) append them to an existing XMLDocument . Preferably without declaring a new XMLDocument first. This doesn't seem possible? Is there any easy way to accomplish something equivalent though? My initial thought was to use the IXMLNode.XML (string) property and insert the new strings. No such luck as IXMLNode.XML is Read Only. Here is an example, if I had the following

Late binding to avoid “User defined type not defined” error

我们两清 提交于 2019-12-10 12:05:22
问题 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 another source from TOOLS > REFERENCES I need to add any thing in run time (first opening of Word). Here is my actual code in use at below, ' bu özel sub sadece onLoad event'ına karşılık gelen ve belge ilk defa yüklendiğinde çalışan özel bir sub

Find MSXML version from registry

我的未来我决定 提交于 2019-12-10 02:58:22
问题 windows has many MSXML versions that can be installed side by side. i.e ver 3, 4, 5 & 6. I have to find which msxml file is present on the system. My query is limited through registry only. 回答1: All of the MSXML versions installed on your machine will be in the following registry GUID: HKEY_CLASSES_ROOT\CLSID\{2933BF90-7B36-11D2-B20E-00C04F983E60}\VersionList. If you are looking for a specific version, say 3.0, you would check that Name = 3.0. 回答2: Getting you all versions installed via

How to get equivalent of max() on MSXML6?

时间秒杀一切 提交于 2019-12-10 00:01:06
问题 Evidently MSXML6 doesn't support XSLT 2.0, at least not the max() function. I need to find out the node that contains the highest value among its siblings. They are in arbitrary order. I want the order to remain identical so adding order-by and checking [0] is out of question. I want to do this with a single XPath statement. I don't want to call templates or involve any more complex logic than that. I'm sure there is a horrifying MS Scripting Extensions embedded somewhere. Eww. I thought of: