SV: [jdom-interest] Form Feed character in CDATA section

Per Norrman pernorrman at telia.com
Thu Feb 26 11:35:05 PST 2004


If you read this http://www.w3.org/TR/1998/REC-xml-19980210#charsets,
you'll realize that formfeed (0xC) cannot be part of 
an XML document. Sorry!

/pmn




> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at jdom.org 
> [mailto:jdom-interest-admin at jdom.org] För GDIECKHAUS at TRANSENTRIC.COM
> Skickat: den 26 februari 2004 17:57
> Till: jdom-interest at jdom.org
> Ämne: [jdom-interest] Form Feed character in CDATA section
> 
> 
> Hi everyone,
> 
> I have a program that has a string that has a form feed 
> character in it. I am using Jdom b8, and when i attempt to 
> create a cdata section with the string, i get the error
> 
> org.jdom.IllegalDataException: The data "my datastring with 
> form feeds in it " is not legal for a JDOM CDATA section: 0xc 
> is not a legal XML character.
> 
> Is there any easy way to get this string into the cdata 
> section.  I dont want to base 64 encode the data, as the 
> process that receives the XML is not expecting base 64 
> encoding. Any thoughts?
> 
> Thanks
> Gregg
> 
> 
> 
> 
> 
> 
> This transmission is intended to be strictly confidential. If 
> you are not the intended recipient of this message, you may 
> not disclose, print, copy or disseminate this information. If 
> you have received this in error, please reply and notify the 
> sender (only) and delete the message. Unauthorized 
> interception of this e-mail is a violation of federal criminal law.
> 
> 
> _______________________________________________
> To control your jdom-interest membership: 
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com




More information about the jdom-interest mailing list