Re: [xep-support] Need help rendering special characters

From: Rick Geimer <Rick.Geimer@nsc.com>
Date: Fri Jan 21 2005 - 09:33:59 PST

I believe your CDATA declaration is malformed. It should be <![CDATA[ ..., not
<[!CDATA

Rick

                                                                                                                                  
                      "Joyce Huang"
                      <Joyce.Huang@vnsny To: "'xep-support@renderx.com'" <xep-support@renderx.com>
                      .org> cc:
                      Sent by: Subject: [xep-support] Need help rendering special characters
                      owner-xep-support@
                      renderx.com
                                                                                                                                  
                                                                                                                                  
                      01/20/2005 09:19
                      AM
                      Please respond to
                      xep-support
                                                                                                                                  
                                                                                                                                  

Hello,

 My name is Joyce Huang from VNS in New York. I have trouble to escaping
special characters in xml file, such as "&" "<" etc.. Our data source is a
cobal program, which is vert restricted on record length. To escape when the
xml is written is not possible, so I endup with a not well-formed xml with
the task of fixing it before rendering. I am trying to use CDATA in xml
like following. Please pay attention to the highlighted line which deal with
special characters. One of my co-workers ran it through FOP and actually
generated a pdf with the CDATA part "12345678&<<>99" intact, while when I
passed it to renderx, I got a SAXParseException. Does renderX currently
support CDATA? If not, can you recommend a solution?

<?xml version="1.0" encoding="UTF-8"?>
<print-job>
        <header>
                <copies>2</copies>
                <duplex>true</duplex>
        </header>

<NETPRNT_485_DATA>
        <NETPRNT_485_AGENCY_DATA>

<NETPRNT_485_HIC_NUMBER><[!CDATA[12345678&<<>99]]></NETPRNT_485_HIC_NUMBER>

<NETPRNT_485_START_OF_CARE_DAT>02/05/03</NETPRNT_485_START_OF_CARE_DAT>
           </NETPRNT_485_AGENCY_DATA>
</NETPRNT_485_DATA>
</print-job>

Thanks.
Joyce Huang

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Fri Jan 21 10:21:10 2005

This archive was generated by hypermail 2.1.8 : Fri Jan 21 2005 - 10:21:11 PST