473,666 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ignoring tags in xml, using just the text

MR
I would like to create an htm file (using Word) that will have some free
form text. However, in the free form text I would like to be able to embed
some fields like Name, Address, etc. I have tried to embed the fields
surrounded by different characters such as __Name__, @@Name@@, $$Name$$. the
problem that i am encountering is that when the htm page is displayed in IE
or in Word the text looks correct.. However, when inspecting the html/xml
code in notepad, the text looks like __<span class=SpellE>Na me</span>__
therefore i cannot use a method like string.replace to replace the value of
__Name__.
I do need to leave the basic html code intact. i don't mind losing the <span
class...> and </span>tags.
is there a class that i can use that is able to perform this replace, i.e.
ignore the embedded xml (html) tags and allows me to work just with the
text?
thanks
m
Feb 20 '06 #1
2 1196
Hi MR,

I don't know if this is the right forum for this particular question, but to
answer your question, Try a Regular expression Replace. (Regex Class in
..NET)

Regards,

Cerebrus.

"MR" <co******@newsg roup.nospam> wrote in message
news:um******** ******@tk2msftn gp13.phx.gbl...
I would like to create an htm file (using Word) that will have some free
form text. However, in the free form text I would like to be able to embed
some fields like Name, Address, etc. I have tried to embed the fields
surrounded by different characters such as __Name__, @@Name@@, $$Name$$. the problem that i am encountering is that when the htm page is displayed in IE or in Word the text looks correct.. However, when inspecting the html/xml
code in notepad, the text looks like __<span class=SpellE>Na me</span>__
therefore i cannot use a method like string.replace to replace the value of __Name__.
I do need to leave the basic html code intact. i don't mind losing the <span class...> and </span>tags.
is there a class that i can use that is able to perform this replace, i.e.
ignore the embedded xml (html) tags and allows me to work just with the
text?
thanks
m

Feb 20 '06 #2
I think a data island will come in handy in ur case

"Cerebrus" <zo*****@sify.c om> wrote in message
news:On******** *****@TK2MSFTNG P12.phx.gbl...
Hi MR,

I don't know if this is the right forum for this particular question, but
to
answer your question, Try a Regular expression Replace. (Regex Class in
.NET)

Regards,

Cerebrus.

"MR" <co******@newsg roup.nospam> wrote in message
news:um******** ******@tk2msftn gp13.phx.gbl...
I would like to create an htm file (using Word) that will have some free
form text. However, in the free form text I would like to be able to
embed
some fields like Name, Address, etc. I have tried to embed the fields
surrounded by different characters such as __Name__, @@Name@@, $$Name$$.

the
problem that i am encountering is that when the htm page is displayed in

IE
or in Word the text looks correct.. However, when inspecting the html/xml
code in notepad, the text looks like __<span class=SpellE>Na me</span>__
therefore i cannot use a method like string.replace to replace the value

of
__Name__.
I do need to leave the basic html code intact. i don't mind losing the

<span
class...> and </span>tags.
is there a class that i can use that is able to perform this replace,
i.e.
ignore the embedded xml (html) tags and allows me to work just with the
text?
thanks
m


Feb 21 '06 #3

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

Similar topics

3
1762
by: katherine | last post by:
Does anyone know a simple Javascript to add tags to a text area on a form. On clicking a bold button for instance <strong></strong> ? Any help appreciated, thanks, kate
2
1713
by: chrisse | last post by:
Hey, I'm having quite a bit of trouble trying to filter through a list using a text box and multiple combo boxes. When you write anything in the text box the list goes blank. Although when you select something from one of the combo boxes nothing happens at all. Help will be greatly appreciated.
5
1754
by: John Saunders | last post by:
Is this ok? I haven't seen any examples of it, but it looks like it should work: <asp:requiredfieldvalidator id="valreqUserName" runat="server" controltovalidate="txtUserName" errormessage="Please enter the user name"> <span title="Please enter the user name"> <img src="../../images/bullet.gif"> </span>
5
2485
by: Steve S | last post by:
Heres what I want to do...User types into a texbox, clicks a button, the button saves that text to a file. The problem is that when I click the submit button, any changes made to the textbox are lost, and it reloads what was previously there. Any ideas? try {
0
1243
by: angus | last post by:
Dear all, I am using multiline text box(textarea) in datagrid. I've found that i cannot use a new line character. is it my problem? Regards, Angus
0
1120
by: Marc | last post by:
Hi, I was wondering if there are any tools frrely available to see exactly what is wrong with a SOAP message and what makes it incompatible with .Net. I am running a Webservice on an Axis server, the particular method in question has complex types both as input and as output. The proxy was generated using the WSDL.exe command line tool. There were no errors when creating the cs file. All the calls return blank values though. I have...
3
1763
by: gardner | last post by:
Please help. I am trying to count something in a Group Footer using a Text Box. If what I am doing is not doable, or there is a better way to structure this please tell me. Here is the situation: This is an attendance report for Summer School ( Students may be enrolled in both a AM session or a PM session and could be absent in one or both.) I have a report that is Grouped first by Student ID, then by date, in the detail section, I have...
3
1838
by: AnnaWhite | last post by:
Hello How can i do to open two windows in defferents targets, using just one link? thanks
1
1632
by: jlcastrejon | last post by:
Hi everybody, Could someone tell me how to make a report using just the last record of my access 2007 database? Tks. Jose
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8551
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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 we have to send another system

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.