[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

global find and replace certain "special" characters a

Subject: global find and replace certain "special" characters and replicate structure as it is
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Wed, 8 Sep 2004 00:27:40 -0500
find replace special characters
I am using Infopath to collect rich text from a word document and for some
weird reason the output I get in the XML has the special B character in it.

I understand that the UTF-8 encoding etcetra causes it to be visible that way.

Also I have the bEUR" character at several locations.

I do not have control over the way Infopath converts this rich text into XHTML
inside mixed custom XML elements.

I do not have control over the source word documents that have enormous
amounts of "spaces" in odd locations.

I am wondering how I can write a convenient global find/replacer that would
essentially go through ANY and EVERY element or text node in the given source
XML(hybrid HTML) and replace the following:

B    with    (nothing) (eliminate it)
<I don't even want the spaces to appear>
bEUR"  with  - (dash)

<?xml version="1.0" encoding="UTF-8"?>
....

			<font face="Times New Roman">
				<strong>Dangerous bEUR" Management Danger </strong>
				<span style="FONT-SIZE: 10pt">(former Danger &amp; Is Now)</span>
				<strong>B B B B  B B B B B B B B B B B B B B B B B B B B B  (0/99 bEUR"
Present)</strong>
			</font>
		</div>
		<h1>hello1</h1>
......
				<tr>
					<td><div style="PADDING-RIGHT: 0in; MARGIN-TOP: 0in; PADDING-LEFT: 0in;
FONT-WEIGHT: normal; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0pt">
			<font face="Times New Roman">
				<strong>Interesting bEUR" Avenue Of  </strong>
				<span style="FONT-SIZE: 10pt">(formerly earl &amp; of england)</span>
				<strong>B B B B  B B B B B B B B B B B B B B B B B B B B B  (0/99 bEUR"
Present)</strong>
			</font>
		</div></td>
					<td>two</td>
					<td>three</td>
				</tr>
	....

____________________________________________________________

Abhishek Sanwal
HP - Houston Campus
..........................................................................
Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.