Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 20th, 2006, 08:45 PM
MR
Guest
 
Posts: n/a
Default ignoring tags in xml, using just the text

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>Name</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


  #2  
Old February 20th, 2006, 09:05 PM
Cerebrus
Guest
 
Posts: n/a
Default Re: ignoring tags in xml, using just the text

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" <comconix@newsgroup.nospam> wrote in message
news:umSivwlNGHA.2912@tk2msftngp13.phx.gbl...[color=blue]
> 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$$.[/color]
the[color=blue]
> problem that i am encountering is that when the htm page is displayed in[/color]
IE[color=blue]
> or in Word the text looks correct.. However, when inspecting the html/xml
> code in notepad, the text looks like __<span class=SpellE>Name</span>__
> therefore i cannot use a method like string.replace to replace the value[/color]
of[color=blue]
> __Name__.
> I do need to leave the basic html code intact. i don't mind losing the[/color]
<span[color=blue]
> 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
>
>[/color]


  #3  
Old February 21st, 2006, 05:35 PM
Onawole, Clement Oladapo
Guest
 
Posts: n/a
Default Re: ignoring tags in xml, using just the text

I think a data island will come in handy in ur case

"Cerebrus" <zorg007@sify.com> wrote in message
news:Oneba$lNGHA.740@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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" <comconix@newsgroup.nospam> wrote in message
> news:umSivwlNGHA.2912@tk2msftngp13.phx.gbl...[color=green]
>> 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$$.[/color]
> the[color=green]
>> problem that i am encountering is that when the htm page is displayed in[/color]
> IE[color=green]
>> or in Word the text looks correct.. However, when inspecting the html/xml
>> code in notepad, the text looks like __<span class=SpellE>Name</span>__
>> therefore i cannot use a method like string.replace to replace the value[/color]
> of[color=green]
>> __Name__.
>> I do need to leave the basic html code intact. i don't mind losing the[/color]
> <span[color=green]
>> 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
>>
>>[/color]
>
>[/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles