Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:12:04+00:00 2026-06-09T23:12:04+00:00

I am encrypting data suing PKCS-7 using this value inside a xml tag ,

  • 0

I am encrypting data suing PKCS-7 using this value inside a xml tag , when i am parsing this xml it is giving me

[Fatal Error] :1:108: An invalid XML character (Unicode: 0x6) was
found in the element content of the document. ERROR :
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x6)
was found in the element content of the document.

Please help me to fix this issue
Thanks A Lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:12:06+00:00Added an answer on June 9, 2026 at 11:12 pm

    One way to enclose binary data in an XML document is to base-64 encode the value. Otherwise (as you have discovered) the data are apt to include characters that aren’t legal in XML data streams. XML does allow some control characters, but only U+0009 (tab), U+000A (LF), and U+000D (CR).

    Using base64 does require, of course, (a) that whatever system you are using to generate the XML has a function for performing base64 encoding (if you have an encryption library to produce the PKCS7, I’m guessing you have a base64 encoding function), and (b) that all the systems that consume the XML you are producing know to expect the value to be base64-encoded. If you are using an XSD schema to define the contract between data sources and data sinks, the schema can easily be made to say the value of the element in question must be base-64 encoded. Otherwise, you just have to document the fact.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question discusses encrypting data on the iPhone using the crypt() function. As an
When I am encrypting 23 using MD5 encryption I am getting 37693cfc748049e45d87b8c7d8b9aacd this 32-character
i'm having a problem while encrypting some data in the file. i'm using simple
I am encrypting My data in PHP like this : $encrypted_string = mcrypt_encrypt(MCRYPT_DES, 'abcdefgh'
while encrypting and descripting the string with rsa provider I am getting this error.
This is my code for AES. Under Gingerbread I get following error after encrypting
I am encrypting data using CryptProtectData function and I am getting encrypted data in
here are my methods for encrypting and decrypting data using RSA: private RSACryptoServiceProvider _RSACSP
What is the difference between encrypting some data vs signing some data (using RSA)?
I have been using the PHP mcrypt module for encrypting sensitive data at my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.