Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Mon, 23 Jun 2008 11:30:10 -0700 (PDT),    group: microsoft.public.xml        back       


Listbox, XML and XSLT   
Hello,

I have a listbox in which I would like to load transformed XML data.

Say I have an XML file that contains information about persons:

<root>
	<person enabled="yes">
		<name>Jesse Hiemstra</name>
		<address>Stellingmûne 110</address>
	</person>
	<person enabled="no">
		<name>Sjoukje Kingma</name>
		<address>Wetterstritte 1</address>
	</person>
</root>

For example: Could I load data from this XML - only where the
"enabled" attribute has the value "yes" - into the listbox using XSLT?

I use the Win32 API in combination with the C programming language.


Thanks in advance!
date: Mon, 23 Jun 2008 11:30:10 -0700 (PDT)   author:   unknown

Re: Listbox, XML and XSLT   
wrote in message 
news:4328fc54-2c5f-486e-81a9-7bbe90b7e924@27g2000hsf.googlegroups.com...
Hello,

I have a listbox in which I would like to load transformed XML data.

Say I have an XML file that contains information about persons:

<root>
<person enabled="yes">
<name>Jesse Hiemstra</name>
<address>Stellingmûne 110</address>
</person>
<person enabled="no">
<name>Sjoukje Kingma</name>
<address>Wetterstritte 1</address>
</person>
</root>

For example: Could I load data from this XML - only where the
"enabled" attribute has the value "yes" - into the listbox using XSLT?

I use the Win32 API in combination with the C programming language.


Thanks in advance!
Yes, using ASP.NET for example you could transform the XML using XSLT and 
bind this to a listbox using an XmlDataSource Control.
In C/Win32 API I think you'd need to select the person elements where 
enabled equals yes and then loop through the collection to add each to the 
listbox.
I'm not conversant enough with C/Win32 API to know what tools you have 
available for this, if using COM you'd probably use the MXSML2 library.

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name
date: Tue, 24 Jun 2008 09:03:41 +0100   author:   Joe Fawcett am

Re: Listbox, XML and XSLT   
Essentially no. The requirements you describe are implemented using two 
different APIs. There is nothing that XSLT provides that is specific to 
listboxes. You must either loop through the XML directly or if you use XSLT 
then you must transform to a format that you loop through. A listbox must be 
filled by adding each item individually.

Note that I am answering your question as closely as possible to the 
question you asked; that is, using the Windows API, listboxes and C or C++. 
If those requirements change or can vary, then the answer would vary.


 wrote in message 
news:4328fc54-2c5f-486e-81a9-7bbe90b7e924@27g2000hsf.googlegroups.com...
Hello,

I have a listbox in which I would like to load transformed XML data.

Say I have an XML file that contains information about persons:

<root>
<person enabled="yes">
<name>Jesse Hiemstra</name>
<address>Stellingmûne 110</address>
</person>
<person enabled="no">
<name>Sjoukje Kingma</name>
<address>Wetterstritte 1</address>
</person>
</root>

For example: Could I load data from this XML - only where the
"enabled" attribute has the value "yes" - into the listbox using XSLT?

I use the Win32 API in combination with the C programming language.


Thanks in advance!
date: Tue, 24 Jun 2008 16:11:36 -0700   author:   Sam Hobbs _change_social_to_socal

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us