Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 2nd, 2006, 06:15 PM
JR
Guest
 
Posts: n/a
Default How to clean 0x0E value from file when using XSL?

I have some code that cleans up an xml file before running xsl
transformation on it due to what I call bad characters in the data. I
have as an example:

str = Replace(str, "", ".")
str = Replace(str, "", ".")

In there as filters to strip out characters XSL doesn't like and
replace it with periods. I am now getting an exception of a hex value
of 0x0E however can't figure out what the string replace value should
be for this one. From what I can tell, it's some kind of "shift out"
character whatever that is. Any input would be appreciated on what I
need to put in there to filter out this value.

THanks.

JR

  #2  
Old August 13th, 2006, 11:05 PM
Peter Flynn
Guest
 
Posts: n/a
Default Re: How to clean 0x0E value from file when using XSL?

JR wrote:
Quote:
I have some code that cleans up an xml file before running xsl
transformation on it due to what I call bad characters in the data. I
have as an example:
>
str = Replace(str, "", ".")
str = Replace(str, "", ".")
I'm curious to know how these characters got in there :-)
Quote:
In there as filters to strip out characters XSL doesn't like and
replace it with periods. I am now getting an exception of a hex value
of 0x0E however can't figure out what the string replace value should
be for this one. From what I can tell, it's some kind of "shift out"
character whatever that is. Any input would be appreciated on what I
need to put in there to filter out this value.
x0E is indeed the SO (Shift Out) character (see any table of ASCII
characters). SO and SI were intended for switching character sets.
Maybe convert them to [ and ] as they presumably originally enclosed
material in another character set.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
 

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