473,503 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing value tags in xml string for report translation

I have rdl report in xml like below.
I need to wrap all label <Valuetag contents to =Res.IR method call.

For example
<Value>ProductId</Value>

should be replaced with

<Value>=Res.IR("ProductId")</Value>

Value tags which start with = character should not replaced.
How to process such xml ?
Andrus.
</Textbox>
<Textbox Name="Textbox8">
<Top>3.07cm</Top>
<Left>17.11cm</Left>
<Width>1.89cm</Width>
<Height>0.55cm</Height>
<CanShrink>true</CanShrink>
<ZIndex>200</ZIndex>
<Value>=test.GetRegnr()</Value>
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>12pt</FontSize>
<TextAlign>Right</TextAlign>
</Style>
</Textbox>
<Textbox Name="Label3">
<Top>3.09cm</Top>
<Left>15.58cm</Left>
<Height>0.53cm</Height>
<CanGrow>false</CanGrow>
<CanShrink>true</CanShrink>
<ZIndex>200</ZIndex>
<Value>ProductId</Value>
<Width>1.51cm</Width>
<Style>
<FontFamily>Times New Roman</FontFamily>
<FontSize>12pt</FontSize>
</Style>
</Textbox>
Jun 27 '08 #1
1 1170
Hi,

Well you can do it by using XMLDocument and xpath to get all the nodes
you want and then simply parse the string elements.

Mario
GemBox Software
--
GemBox.Spreadsheet for .NET - Easily read and write Excel (XLS, XLSX
or CSV)
or export to HTML files from your .NET apps. See
http://www.gemboxsoftware.com/GBSpreadsheet.htm
--
Jun 27 '08 #2

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

Similar topics

31
5659
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a...
31
4077
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
2
2202
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the...
2
2616
by: ColinWard | last post by:
Hi. I have a form which has as its recordsource an SQL string. The SQL String is as follows: SELECT * from CONTACTS where false. this ensures that there is no data loaded in the form when the...
3
4568
by: Jeff | last post by:
Hi I have a report with a graph on it and want to change the minimum and maximum values for the value axis when it is previewed. This can't be done by adding code in the Open event as once the...
13
6433
by: William Payne | last post by:
Hello, I would like to know if EXIT_FAILURE/SUCCESS has the same value on all platforms? I am writing a few scripts (I know shell scripts are off-topic here) to test my C programs and they depend...
11
2621
by: ajikoe | last post by:
Hello, I used Visual C# Standard Edition. I want to comment my program using xml commentary method, I don't know why if I use value and example tag, it is not working / showed in the html...
4
1226
by: wg | last post by:
I am attempting to create an array of value types but seem to be haveing a problem referencing it. I have created a class Public Class Tags Private _Name As String Private _Address As String ...
7
27617
by: steve | last post by:
Hi All I need to change text in a Report Viewer document at runtime It is just the heading I want to change to match what the user has chosen as the Report to view How do I access the...
0
7070
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...
1
6976
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...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.