473,320 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Databindings and XML - Binding Text between XML Tags instead of XMLTag Atrribute Information


Dear Group
I wonder if I do something wrong and whether this is possible at all.
Any hint is greatly appreciated.
I have a XML file bound to a Treeview. The treenodes Text/Value
properties bind and populate fine if I set them to an attribute of
the
XML tag. What I would like to do however is setting my nodes text and
value property to text that is between the XML tags. Example:
<products>
<article value="1" text="Washing Powder">
<description text="Super Whitewash">
Super Whitewash is ideal and a 'must have' for some
Government departments..
</description>
</article>
<article value="2" text="Butter">
<description text="Extra Salted Butter">
Our Extra Salted Butter is guaranteed to send your
blood pressure through the roof...
</description>
</article>
</products>
I tried to include 'Super Whitewash is ideal..' as an attribute in
the
description tag. But that doesn't allow me to to a line break e.g.
<br /if I have several paragraphs for the description.
If I include the line break, <br />, between the description tags,
all
I can see is a list of <br /if I put several paragraphs in but none
of the actual text.
Any help and hint is very appreciated.
Thank you for your time and effort,
Martin
Nov 27 '07 #1
0 1686

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chuck Bowling | last post by:
i have a form with a couple of textboxes bound to a collectionbase object. The code looks like this: txtName.DataBindings.Add(new Binding("Text", instrumentSet, "Name")); ...
0
by: Kyle Rowe | last post by:
Binding binding = new Binding("Text", x, null); textBox1.DataBindings.Add(binding); I wrote the aboe code when the form loads, but when I change the variable x, the textbox does not display the...
0
by: theintrepidfox | last post by:
Dear Group I wonder if I do something wrong and whether this is possible at all. Any hint is greatly appreciated. I have a XML file bound to a Treeview. The treenodes Text/Value properties...
0
by: theintrepidfox | last post by:
Dear Group First of all, my apologies for posting here. I tried the MS groups but they're so useless. As some of you work with ASP.NET and XML I wondered if you have come across this and can...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.