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 8402199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:59:34+00:00 2026-06-09T21:59:34+00:00

hi i am working with linkiedin api , there i have a xml function

  • 0

hi i am working with linkiedin api , there i have a xml

function send_messeges($access_token, $xml_atring) {

    $profile_url = "http://api.linkedin.com/v1/people/~/mailbox";
    $xml = '<?xml version="1.0" encoding="UTF-8" ?>
        <mailbox-item>
          <recipients>                
            ' . $xml_atring . '
          </recipients>
          <subject>'.$this->send_subject.'</subject>
          <body>'.$this->send_message.'</body>
        </mailbox-item>';
    $request = OAuthRequest::from_consumer_and_token($this->consumer, $access_token, "POST", $profile_url);
    $request->sign_request($this->method, $this->consumer, $access_token);
    $auth_header = $request->to_header("https://api.linkedin.com");
    $response = $this->httpRequest($profile_url, $auth_header, "POST", $xml);        
    return $response;

}

in

$this->send_message

i have a message , i want to add some HTML with message , but linkedin API does not allow me to do that .

even the

<![CDATA[
        Line 1 <br />
        Line 2 <br />
        Line 3 <br />
        ]]>

is not working here , so is there any built in xml tag i can use for line breaks ansd is there any tags equalant to HTML tags . please help

UPDATE

if i use message

"Elephanti <br/> invitation Message, Visite our site http://elephanti.com";

the response is

Invalid xml {Element not allowed: br@http://api.linkedin.com/v1 in element body@http://api.linkedin.com/v1}
  • 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-09T21:59:36+00:00Added an answer on June 9, 2026 at 9:59 pm

    Use &#xD in your XML document wherever you want to have the line breaks.

    There’s a good explanation at this site: http://www.stylusstudio.com/xmldev/200309/post80050.html

    ANOTHER OPTION

    Try just typing <br/> where you want the space

    EDIT FOR FUTURE VIEWERS

    What worked for him was typing \n where he wanted the line-break

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

Sidebar

Related Questions

I have a database of people's names and LinkedIn profile URLs. Annoyingly there isn't
I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to
Working with an undisclosed API, I found a function that can set the number
Working on a website http://www.ArenaText.com written in asp.net with Microsoft AJAX control toolkit. iPad
I'm working on building a library for a client to integrate with LinkedIn's API
I am working with LinkedIn API and trying to call for Start Follow a
I am using Linkedin iphone SDK https://github.com/ResultsDirect/LinkedIn-iPhone It was working fine But from this
I found an interesting discussion here: http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&gid=43315&discussionID=12708606&goback=.anh_43315 Quote: DataSets are sub-par amateur solutions to
I already have oAuth working with the Linked API. The dance is working nicely.
My sample Json object is as follows { numRecommenders: 0, publicProfileUrl: http://www.linkedin.com/pub/heena-vyas/16/786/826, positions: {

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.