<rate<font color="#000000"><rate name="SEATTLE" code="1726" staterate="0.065" localrate="0.036">I have a working spreadsheet which uses a vba to query a web service and return a tax value and other information.
However, recently I found a bug that stems from excel having not created the schema fully, therefore I am not getting enough of the values I need refreshed in Excel.
Without modifying the vba, I think I can get what I need with the correct schema.
To be clear, the spreadsheet works refreshing the xml, but the bug is that in some search queries, the rate and localrate under response are not matching the staterate and localrate under rate below. So I am returning an incorrect tax rate. Please take a look and see if you can help.
Here is the xml output from the web service:
<rate name="SEATTLE" code="1726" staterate="0.065" localrate="0.036">
Here is the url which brings up that xml return:
The part of the xml that Excel is not creating schema for is:
<rate<font color="#000000">
Here is a picture in excel of what that looks like, I have circled the area where Excel is not loading the schema:
Also, in case I have done something wrong, or you can modify my VBA to get the excel file to return all refreshed values, here is the VBA I'm using to call for the tax rate:
And here is the link to download the Excel file:
Thanks so much for any help, it is greatly appreciated, I am stumped.
</rate</rate></rate
However, recently I found a bug that stems from excel having not created the schema fully, therefore I am not getting enough of the values I need refreshed in Excel.
Without modifying the vba, I think I can get what I need with the correct schema.
To be clear, the spreadsheet works refreshing the xml, but the bug is that in some search queries, the rate and localrate under response are not matching the staterate and localrate under rate below. So I am returning an incorrect tax rate. Please take a look and see if you can help.
Here is the xml output from the web service:
<rate name="SEATTLE" code="1726" staterate="0.065" localrate="0.036">
PHP:
<response loccode="1726" localrate="0.036" rate="0.101" code="0"><addressline houselow="700" househigh="700" evenodd="E" street="5TH AVE" state="WA" zip="98104" plus4="3743" period="Q32017" code="1726" rta="Y" ptba="King PTBA" cez="Duwamish"/><rate name="SEATTLE" code="1726" staterate="0.065" localrate="0.036"/></response>
Here is the url which brings up that xml return:
Code:
http://dor.wa.gov/AddressRates.aspx?output=xml&addr=700%205th%20Ave&city=Seattle&zip=98104
The part of the xml that Excel is not creating schema for is:
<rate<font color="#000000">
PHP:
<rate name="SEATTLE" code="1726" staterate="0.065" localrate="0.036"/>
Here is a picture in excel of what that looks like, I have circled the area where Excel is not loading the schema:
Code:
http://imgur.com/a/85bvF
Also, in case I have done something wrong, or you can modify my VBA to get the excel file to return all refreshed values, here is the VBA I'm using to call for the tax rate:
Code:
Private Sub CommandButton1_Click()Dim Cit As Variant
Dim Zip As Variant
Dim Stree As Variant
Dim rate As Variant
Zip = Cells(10, 10)
Cit = Cells(9, 10)
Stree = Cells(8, 10)
rate = Cells(12, 42)
Dim Map As XmlMap
Set Map = ActiveWorkbook.XmlMaps(1)
Map.DataBinding.LoadSettings "http://dor.wa.gov/AddressRates.aspx?output=xml&addr= " & Stree & " &city=" & Cit & " &zip= " & Zip & ""
Map.DataBinding.Refresh
End Sub
And here is the link to download the Excel file:
Code:
https://ufile.io/3bejw
Thanks so much for any help, it is greatly appreciated, I am stumped.
</rate</rate></rate