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

Re: embed Base64 content into xml element

Subject: Re: embed Base64 content into xml element
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 09 Apr 2010 20:59:37 +0100
Re:  embed Base64 content into xml element
On 09/04/2010 19:50, Suresh wrote:
I have some content in base64 format in a text file. How can I embed
the base64 content into xml file.

For example :

base64 text file:

That appears to be missing a couple of == at the end to decode to Deployment\temp\Modifi

If you know that the text encoded is valid XML character data then your system may have an extension function to decode it


(or it wouldn't be too hard to write the decoder in xslt) but in general base64 can encode binary data that includes byte sequences not legal in XML text encodings so in that case you'd have to decide what to do (the usual way of encoding such things in xml is to base64 encode them....

Required output in XML File: -----------------------------------------

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
                     <dp:file>  CONTENT FROM BASE64 TEXT FILE</dp:file>

How can I write XSLT?


________________________________________________________________________ This e-mail has been scanned for all viruses by Star. ________________________________________________________________________

Current Thread


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
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.