473,394 Members | 1,879 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,394 software developers and data experts.

Off Topic - Databindings and XML - Binding Text between XML Tagsinstead of XML Tag Atrribute Information


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 give me some advice as
this group is the only reliable source for an answer. Again, my
apologies for posting it here.

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 1099

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

Similar topics

0
by: Richard | last post by:
Hi, I am trying to bind a datetime picker control to a column in a DataView and I get this exception: "Object reference not set to an instance of an object." Pseudo code looks like this: ...
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: Johann Blake | last post by:
I have a form with textboxes that are bound to a dataset. The dataset contains two tables and some of the textboxes use data from one table while other textboxes use data from the other table. I...
9
by: HAN(removethis)twister | last post by:
I've tried to create 11 textboxes as variables (not actually visible in the program, not in Windows Form Designer) and have set DataBindings to the text properties of the TextBoxes BUT according to...
2
by: C Glenn | last post by:
This is admitedly vague. But so is my understanding of the problem. I'm using this chunk of code: retControl.DataBindings.Add(ctrlBinding.PropertyName,DataSource,BindingField); This resolves...
1
by: Tom Scales | last post by:
OK, this one has me stumped. I am reading XML into a Dataset and then binding values to a label control. When displayed on the screen, the label control has the correct value in it. When I...
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: Infog | last post by:
I am getting an error I don't understand - "Child list cannot be created". I have successfully bound a DataView column to a textbox, but am having problems binding a child table's column in the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.