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

  • Home
  • SEARCH
  • 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 6250865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:30:30+00:00 2026-05-24T13:30:30+00:00

hello i have a problem in getting picture from the url contained in the

  • 0

hello i have a problem in getting picture from the url contained in the xml file:

<item>
    <title>Music</title>
    <photo>http://www.jawharafm.net/jfmfiles/photos/hamdi.jpg</photo>
</item>

and here’s my code c#:

XElement xmlItems = XElement.Parse(e.Result);

listBox1.ItemsSource = from channel in xmlItems.Descendants("item")

let tit = channel.Element("title")

let pho = channel.Element("photo")

select new items
{
    title = tit == null ? null : tit.Value,
    photo = pho == null ? null : pho.Value,
};

also i have a small problem in ignoring style balise in displaying text after parsing document like this :

<description>
    <![CDATA[<style>img { max-width: 310px; }</style><div>un concours mondial, appelé           "BlueHat"</span>, pour récompenser le ou la passionné d'informatique capable  <span    style="color: #3366ff;">10.000 dollars</span>.</div>
        <div /><span style="color: #ffffff;" />....]]>
</description>

Thanks

  • 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-05-24T13:30:31+00:00Added an answer on May 24, 2026 at 1:30 pm

    Right where you are using the ternary operators for the photo, you need to create an instance of a BitmapImage. Something like this:

    photo = pho == null ? null : new BitmapImage(new Uri(pho.Value))
    

    Given that photo is a BitmapImage itself.

    What exactly is the problem with the style tag? Since you are declaring it as a part of CDATA, it is correctly read and interpreted as a standard string value.

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

Sidebar

Related Questions

Hello I faced the same problem I have 1 broadcast receiver from that I
Hello I have problem to put together animations of two separate objects to second
Hello I am a Java web app developer I have a problem, I would
Problem Hello all! I have this code which takes my jpg image loops through
I have a problem with modprobe command... I compiled the hello world module and
Well, I have a file test.txt #test.txt odsdsdoddf112 test1_for_grep dad23392eeedJ test2 for grep Hello
hello everyone i have a problem with my 3-tiers application i don't know how
Hello I have a problem when grouping the OpenCV's functions in functions of my
Hello i have a problem with this line of code: Last Visted On :
Hello fellow developer,i've getting problem to set the Timer method on ZK,default the method

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.