Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Escape character for "/"

Status
Not open for further replies.

ColinGregory

Technical User
Feb 16, 2001
39
US
Hi everyone

I know the answer to this is easy (when you know how) but I can't pin it down anywhere on the web...

I'm sure the following string is preventing my file from processing

00246/1.0

How can I escape out the forward slash and decimal place?

Thanks in advance
Colin
 
I'm sure the following string is preventing my file from processing

Not likely. Post a bigger chunk of your file to show us the context.
 
And a larger sample of your XML (the 5 lines prior to this one and the 5 lines after would probably be enough)

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Thanks Harebrain and Chiph

Heres my offending file

Code:
<?xml version=&quot;1.0&quot;?>

<!-- Created by QC_LIMS-->
<ir_download_transmission xmlns:xsi=&quot;[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance&quot;>[/URL]
	<RENCS_LOT>
		<PRODUCT_CODE>00246/1.0</PRODUCT_CODE>
		<OLD_PRODUCT_CODE>00246/1.0</OLD_PRODUCT_CODE>
		<LONG_DESCRIPTION>Indomethacin Capsules 75mg    Leaflet Ashbourne [INDOMAX]</LONG_DESCRIPTION>
		<RENCS_LOT_NO>B50097</RENCS_LOT_NO>
		<GUK_BATCH_NO>B50097</GUK_BATCH_NO>
		<MANUFACTURERS_LOT_NO>60667</MANUFACTURERS_LOT_NO>
		<GUK_GI_NUMBER>100450</GUK_GI_NUMBER>
		<SUPPLIER_CODE>CLE01</SUPPLIER_CODE>
		<SUPPLIER_NAME>CLEANPRINT</SUPPLIER_NAME>
		<DOM>07/07/2003</DOM>
		<EXPIRY_DATE>01/07/2006</EXPIRY_DATE>
		<RETEST>F</RETEST>
		<SAMPLED_DATE>08/07/2003</SAMPLED_DATE>
		<QCREF>PO101599</QCREF>
		<REQUIRED_BY>11/07/2003</REQUIRED_BY>
		<ALL_IN_SPEC>T</ALL_IN_SPEC>
		<RETURNS>F</RETURNS>
		<GUK_PO_NUMBER>100041</GUK_PO_NUMBER>
		<RETEST_DATE>01/07/2006</RETEST_DATE>
		<LOT_SAMPLING_POINT>
			<DISPOSITION>QOH</DISPOSITION>
			<DISPOSITION_BY>TULLEL01</DISPOSITION_BY>
			<DISPOSITION_DATE>04/09/2003</DISPOSITION_DATE>
			<QUANTITY>7000</QUANTITY>
			<LABEL_PRINTER>B10_A</LABEL_PRINTER>
			<CONTAINERS>5</CONTAINERS>
		</LOT_SAMPLING_POINT>
	</RENCS_LOT>
</ir_download_transmission>

Thanks for your help
Colin
 
I parsed your xml with this xsl:
Code:
<xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform&quot;>[/URL]
  <xsl:output method=&quot;html&quot; version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; indent=&quot;yes&quot;/>
  <xsl:template match=&quot;/&quot;>
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match=&quot;RENCS_LOT&quot;>
    <table border=&quot;1&quot;>
      <tr><td>
        <xsl:value-of select=&quot;PRODUCT_CODE&quot;/>
      </td></tr>
      <tr><td>
        <xsl:value-of select=&quot;OLD_PRODUCT_CODE&quot;/>
      </td></tr>
      <tr><td>
        <xsl:value-of select=&quot;LONG_DESCRIPTION&quot;/>
      </td></tr>
      <!-- etc etc -->
    </table>
  </xsl:template>
</xsl:stylesheet>
No problem.
So I guess your problem is something else...
 
I concur with jel: IE parses and displays this nicely. In the immortal words of Foghorn Leghorn, You musta goofed up somewhere else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top