tgriffit
asked on
Using XML/XSL in webBrowser Control
I'm currently retrieving an xml block using a stylesheet from the database and storing it in a variable. I can write this block to the webBrowser control, but it does not find the stylesheet that I want to utilize for formatting. I've tried absolutely pathing the stylesheet in the xml block and numerous other path options and none seem to work. When I save the xml to the drive and open it in the browser object all is fine. I'm assuming it cannot resolve the position of the stylesheet. Is there a special trick to this? Any sort of direction would be helpful!!
Here is the xml block
<?xml version=''1.0''?>
<?xml-stylesheet TYPE=''text/xsl'' href=''/xsl/AGENT_OUTBOUND _CALLS.xsl ''?>
<AGENT_OUTBOUND_CALL>
<CAMPAIGN_NAME></CAMPAIGN_ NAME>
<CAMPAIGN_ID></CAMPAIGN_ID >
<GROUP_ID></GROUP_ID>
<GROUP_NAME></GROUP_NAME>
<CONTACT>My Name</CONTACT>
<PHONE>345-3456</PHONE>
<DATE>9/28/2004</DATE>
<TIME>10:30</TIME>
<COMMENTS>Need TO call about something</COMMENTS>
<PRIORITY>1</PRIORITY>
</AGENT_OUTBOUND_CALL>
Browser call (sXML is the above code retrieved from the DB, i'd prefer not to write it to a file and just dynamically populate the browser):
frmConsole.wbOutbound.Navi gate ("about:" + sXML)
Here is the xml block
<?xml version=''1.0''?>
<?xml-stylesheet TYPE=''text/xsl'' href=''/xsl/AGENT_OUTBOUND
<AGENT_OUTBOUND_CALL>
<CAMPAIGN_NAME></CAMPAIGN_
<CAMPAIGN_ID></CAMPAIGN_ID
<GROUP_ID></GROUP_ID>
<GROUP_NAME></GROUP_NAME>
<CONTACT>My Name</CONTACT>
<PHONE>345-3456</PHONE>
<DATE>9/28/2004</DATE>
<TIME>10:30</TIME>
<COMMENTS>Need TO call about something</COMMENTS>
<PRIORITY>1</PRIORITY>
</AGENT_OUTBOUND_CALL>
Browser call (sXML is the above code retrieved from the DB, i'd prefer not to write it to a file and just dynamically populate the browser):
frmConsole.wbOutbound.Navi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.