Hello,
I m developing an API Using Generic Handler to Accept a request from a client with the following format, THE CLIENT REQUEST IS MISTAKENLY SENT WITH <div> ELEMENT.
PLEASE HOW CAN I READ ONLY THE XML ELEMENT AND LEAVE THE HTML <DIV> ELEMENT.
<div>
<CustomerInformationRequest xmlns:ns2="http://techquest.interswitchng.com/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
</div>
<div>
<ServiceUrl>https://portal.tconjalingo.org.ng/generic/payment/api/interswitch.ashx</ServiceUrl>
</div>
<div>
<ServiceUsername></ServiceUsername>
</div>
<div>
<ServicePassword></ServicePassword>
</div>
<div>
<RouteId>HTTPGENERICv31</RouteId>
</div>
<div>
<Service>bill-payment-service</Service>
</div>
<div>
<MerchantReference>7463</MerchantReference>
</div>
<div>
<CustReference>6915775617</CustReference>
</div>
<div>
<PaymentItemCategoryCode></PaymentItemCategoryCode>
</div>
<div>
<RequestReference></RequestReference>
</div>
<div>
<TerminalId></TerminalId>
</div>
<div>
<Amount>0</Amount>
<FtpUsername></FtpUsername>
<FtpPassword></FtpPassword>
</CustomerInformationRequest>
</div>
'''''TODO: Load Log request
'''''Declare the XML document
Dim xmlDoc As New XmlDocument
'Read the input stream to get incoming SOAP message
Dim sr As New StreamReader(System.Web.HttpContext.Current.Request.InputStream)
Dim Results As String = System.Web.HttpContext.Current.Server.UrlDecode(sr.ReadToEnd())
''''TODO: Check if There is Request Presence
If Results <> "" Then
Dim XMLreader As New XmlTextReader(New System.IO.StringReader(Results))
THANK YOU