[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Needed Binary Information as part of XML data.

  • To: <xml-dev@l...>
  • Subject: Needed Binary Information as part of XML data.
  • From: <binu.idicula@w...>
  • Date: Thu, 14 Apr 2005 18:40:41 +0530
  • Thread-index: AcVA7+mIpzROYlNISnupwo1v4v0CtQAAfENA
  • Thread-topic: Needed Binary Information as part of XML data.

binary info


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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.