lsakizada Posted August 30, 2006 Share Posted August 30, 2006 (edited) Which control can display XML format inside a control? The control must have a scroll bar if the length is longer the control's height. I have tryied with input, edit and label with no successful. Here is an example of xml data to be displayed. <mdpResponse> <request>getallgateways</request> <returnValue type="list"> <gateway> <id>1</id> <ip>192.117.223.16</ip> <logLevel>40000</logLevel> <name>gaia</name> <realIp></realIp> <status> <bscStatusList/> <description>failed connecting to gateway</description> <mode>Online</mode> <status>4</status> </status> </gateway> </returnValue> <status>SUCCESS</status> <version>1: build(4)</version> </mdpResponse> Edited August 30, 2006 by lsakizada Be Green Now or Never (BGNN)! Link to comment Share on other sites More sharing options...
flyingboz Posted August 30, 2006 Share Posted August 30, 2006 Which control can display XML format inside a control?XML is text. Any control that can display text can display XML.If you want it to appear in some formatted way, then you need to parse the XML. There are a wide variety of methods for parsing XML, ranging from COM objects to theString() functions.There have been some initial attempts at UDFs that build some of the substructure for you. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
lsakizada Posted August 30, 2006 Author Share Posted August 30, 2006 XML is text. Any control that can display text can display XML.If you want it to appear in some formatted way, then you need to parse the XML. There are a wide variety of methods for parsing XML, ranging from COM objects to theString() functions.There have been some initial attempts at UDFs that build some of the substructure for you.Thanks for the response.I found nice way to display the xml format as is it on an activex control.my problem was that the label control did not have the ability to scroll text. on the other hand when I set the data (as an xml tree) into a inputbox then the input control formated it to one line. the activex is ok for me for now.$oRP = ObjCreate("RICHTEXT.RichtextCtrl.1")$GUIActiveX = GUICtrlCreateObj( $oRP, 10, 10 , 400 , 260 ) GUICtrlSetPos($GUIActiveX,10,10,580,320) Be Green Now or Never (BGNN)! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now