PC Review


Reply
Thread Tools Rate Thread

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

 
 
theintrepidfox
Guest
Posts: n/a
 
      26th Nov 2007

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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you get text XML tags instead of purple tags in Word 2003? lasloo Microsoft Word Document Management 0 3rd Mar 2009 04:06 PM
Label Databindings are reset upon edit databindings via smart tag =?Utf-8?B?UFc=?= Microsoft ASP .NET 0 24th Apr 2006 12:10 AM
data binding: using text and tags. oracle Microsoft C# .NET 0 14th Dec 2005 08:44 PM
ID Tags information Wilson Windows XP Music 0 15th Sep 2004 02:26 PM
Problem Using Data Binding Tags Wayne Wengert Microsoft ADO .NET 2 24th May 2004 02:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 PM.