msxml

How to send a HTTP POST from Classic ASP with a parameter to a WEB API?

我们两清 提交于 2020-04-11 04:33:49
问题 I am trying to create a call to a WEB API on the same machine on another port. It works fine and sends back the string and hits the .NET breakpoint but the parameter is never being passed..(it is null) .. Is there something I am missing in the classic ASP code to pass that string ? (DataToSend) My calling code: <% Response.Buffer = True Dim xml ' Set xml = Server.CreateObject("Microsoft.XMLHTTP") Set xml = server.Createobject("MSXML2.XMLHTTP") DataToSend="<?xml version=""1.0"" encoding=""UTF

How to perform case insensitive search in XPath?

前提是你 提交于 2020-04-07 02:24:56
问题 I am trying to implement case insensitive search using XPath. I have already referred how to perform a case-insensitive attribute selector in xquery so please check before marking as duplicate. I am using Lcase to convert my variable ( L_search ) to lowercase and lower-case functions. My original case sensitive XPath expression is: XPath = "//*[contains(., '"& search &"')]/ancestor-or-self::*/*[local-name()='home' and @locale='en']" I have tried many combinations like : XPath = "//*lower-case

How to perform case insensitive search in XPath?

寵の児 提交于 2020-04-07 02:23:09
问题 I am trying to implement case insensitive search using XPath. I have already referred how to perform a case-insensitive attribute selector in xquery so please check before marking as duplicate. I am using Lcase to convert my variable ( L_search ) to lowercase and lower-case functions. My original case sensitive XPath expression is: XPath = "//*[contains(., '"& search &"')]/ancestor-or-self::*/*[local-name()='home' and @locale='en']" I have tried many combinations like : XPath = "//*lower-case

Procedure Parameter Error on MSXML

ε祈祈猫儿з 提交于 2020-01-17 15:27:33
问题 Below is the code that I am running and I am getting an error: I already checked the uses and it's fine. I think it is a problem with the parameter of my AddSimpleElement() procedure. unit Unit9; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.OleServer, QBXMLRP2Lib_TLB, MSXML, XMLDoc; type TForm9 = class(TForm) btnSubscribe: TButton; btnUnsubscribe: TButton; rp21:

Procedure Parameter Error on MSXML

若如初见. 提交于 2020-01-17 15:27:13
问题 Below is the code that I am running and I am getting an error: I already checked the uses and it's fine. I think it is a problem with the parameter of my AddSimpleElement() procedure. unit Unit9; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.OleServer, QBXMLRP2Lib_TLB, MSXML, XMLDoc; type TForm9 = class(TForm) btnSubscribe: TButton; btnUnsubscribe: TButton; rp21:

< & > are converted to > < etc

廉价感情. 提交于 2020-01-16 09:09:11
问题 I am using MSXMl library to parse xml after I call put_text and then get_xml the output will have < & > converted to < & > How can i get rid of this? 回答1: < and > are prohibited to use inside the text and need to be encoded as &gt and &lt. The only way to avoid this is creating a CDATA section for the text containing those. But you really don't need to if you intend to read the XMLT with MS XML - it will decode those symbols just fine and you will get your < and > perfectly fine in the

EOutOfMemory Creating Large XML Using Delphi

随声附和 提交于 2020-01-13 19:41:11
问题 I'm using Delphi to create an XML document from data in a relational database. It tests fine with small datasets, but when I try to expand the size of the data set to production levels it eventually bombs out with an EOutOfMemory exception during node creation. I'm using a TXMLDocument dropped on a form (MSXML as the Vendor), and my code generally looks like this: DS := GetDS(Conn, 'SELECT Fields. . . FROM Table WHERE InsuredID = ' +IntToStr(AInsuredID)); try while not DS.Eof do with ANode

XPath with MSXML, “scope” of XPath-expressions

你说的曾经没有我的故事 提交于 2020-01-05 05:28:10
问题 i have an understanding-problem using Microsoft XML Core Services 6.0 (MSXML) with XPath-expressions. I´ve broken down the problem to the most simple case. So let´s take the following XML-File: <?xml version="1.0" encoding="UTF-8"?> <root> <element name="E1A1"> <subEle value="1a"/> <subEle value="1b"/> <subEle value="1c"/> </element> <element name="E2A1"> <subEle value="2a"/> <subEle value="2b"/> <subEle value="3b"/> </element> <element name="E3A1"> <subEle value="3a"/> <subEle value="3b"/>

Can you detect a 301 redirect with Microsoft.XMLHTTP object?

我与影子孤独终老i 提交于 2020-01-04 02:18:28
问题 I'm using VBScript and the Microsoft.XMLHTTP object to scrape some web data. I have a list of URLs to check, but unfortunately some of them 301 redirect to others on the list, so I wind up with redundant data. Is it at all possible to make the XMLHTTP object fail on 301 redirect? Or at least cache the original response header? Or otherwise just let me know what happened? (notes: I have no control over the server I'm requesting data from; when I get new data, I could check if it's redundant,

Parse XML File with VBA

徘徊边缘 提交于 2020-01-03 21:08:08
问题 I have a XML file with a structure similar to this: <egh_eval> <eval_set> <eval_id>FLOAT</eval_id> <eval_d> <height>INT</height> <weight>INT</weight> </eval_d> <eval_e> <height>INT</height> <weight>INT</weight> </eval_e> <eval_cred> <credit>FLOAT</credit> </eval_cred> </eval_set> I need to parse the complete file and put it in a table. (Note: eval_d and eval_e actually have more than a hundred attributes each). I tried using MSXML2 however I get stuck when I try to parse the file. By using