Link to home
Start Free TrialLog in
Avatar of audExpert
audExpert

asked on

create html from web service that returns xml

I am trying to create an html select tag based on the results I get back from a web service.  The web services creates the html.  I get the return string and want to place it in my web page.  I am getting a string back but it is not showing up as html but just as a string.  This is the results from the web service:

  <?xml version="1.0" encoding="utf-8" ?>
  <string xmlns="http://audintranet/SIREJVSvc"><SELECT id='OpenAcctgPeriodsSelect' onChange='GetJVNo();'><OPTION value='4,2009'>April 2009</OPTION></SELECT></string>

What shows up in the web page is the select statement as a string.  The way I place it in the page is by the following:

document.getelementbyid("myDiv").innerHTML = httpResponse.responseText

How in the world do I get my string to show up as html?
Avatar of Gibu George
Gibu George
Flag of India image

you need to set the respponse content type to text/html
ASKER CERTIFIED SOLUTION
Avatar of audExpert
audExpert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of audExpert
audExpert

ASKER

Found own solution. Please see mylast comment.