Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser - Navigate
Message
 
 
To
22/05/2006 09:58:10
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01121892
Message ID:
01123930
Views:
15
You're welcome.

>Thanks. It works.
>
>>The following sample code shows how it can be done for XML. It doesn't include any error handling.
>>...
>>        * Load IE default XML stylesheet
>>	loXSL = CREATEOBJECT( "MSXML2.DOMDocument.3.0" )
>>	loXSL.async = .T.
>>	loXSL.load("res://msxml3.dll/DEFAULTSS.XSL")
>>        * Load XML
>>	loXML = CREATEOBJECT( "MSXML2.DOMDocument.3.0" )
>>	loXML.loadXML( lcXml )
>>	*? loXML.parseError.reason
>>	*? loXML.parseError.errorCode
>>        * Transform XML to HTML
>>	lcHtml = loXML.transformNode(loXSL)
>>        * Load HTML into Web Browser Control
>>	.Document.Open()
>>	.Document.Write(lcHtml)
>>	.Document.Close()
>>...
>>
>>
>>>Thanks. Now I see. But I still have problem with it. If I used .document.write(XMLString), It does not display the XML correctly. How can I have the XML text displayed?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform