[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Needed Binary Information as part of XML data.
Hi Friends, As part of a binary information sharing (you can assume a binary data cache info) between applications, I have come across a problem that 0x0 is not a valid XML character to be set as an attribute. The following is the requirement. - Have an InputStream - which gives a byte[4000]. - This byte[] is converted as a String - Tried to set it as XML attribute. I am using JDOM as of now. But I just wanted to get a better advice before experimenting with all other options. Anybody came across such a requirement to transfer a few binary data as part of XML? Thanks in Advance. Binu K Idicula Exception is as follows domainObjects.Com^@" is not legal for a JDOM attribute: 0x0 is not a legal XML character. at org.jdom.Attribute.setValue(Attribute.java:486) at org.jdom.Attribute.<init>(Attribute.java:229) at org.jdom.Attribute.<init>(Attribute.java:252) Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@w... immediately and destroy all copies of this message and any attachments.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|