
February 20th, 2006, 08:45 PM
|
|
|
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
|

February 20th, 2006, 09:05 PM
|
|
|
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]
|

February 21st, 2006, 05:35 PM
|
|
|
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]
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
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.
|