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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:12:12+00:00 2026-06-10T12:12:12+00:00

I modify my XML now, I have a parent element <imgRes> in my XML

  • 0

I modify my XML now, I have a parent element <imgRes> in my XML in that I am having two different child nodes <images> and <rightContent>.

In earlier I wont have <imgRes> and <rightContent>, As i added it my code then its not adding in the div. I dont know whether my XML structure is wrong or something is missing.

So the <rightContent> having a div which is static which should be outside of the image sliding functionlity. I holds a link and a data.

I need some help where I am going wrong.

This is what I have tried.

http://jsfiddle.net/QNZDX/13/

  • 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-10T12:12:14+00:00Added an answer on June 10, 2026 at 12:12 pm

    It looks like you were never retrieving the data from the xml to set it into your new DOM elements. I updated the jsfiddle to alter the css and dom a bit so that the rightContent div wouldn’t contain the link itself but the main piece you needed was this:

    $("#rightContent").text( $xmldata.find('rightData').find('data').text());
    $("#rightLink").prop('href',$xmldata.find('rightData').find('link').text());
    prevIndex++;
    

    The updated fiddle will show the minor changes.

    If you want to update not only the URL of the link but also the link text then you can add something like this to set that value.

    $("#rightLink").text($xmldata.find('rightData').find('link').text());
    

    Note that the hardcoded values in the jsfiddle are just for demonstration. You can define whatever elements you like in the xml and then parse then into dom element values through jquery.

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

Sidebar

Related Questions

I'm still playing around with xml. Now I have a file that looks like
I have one XML request which I need to modify (to XML) and then
I have implemented an application for modify the xml layout with some properties. I
I have an xml file I need to modify: ... </web-app> I want to
I'm having issues trying to deserializing my xml string that was from a dataset..
I have a web service returning JSON, but now I'd like to modify it
I have a XML in which there is another XML (within CDATA). Now I
I have a xml file which I modify with the following code: XmlDocument xlDoc
I have a small C# program to modify a xml file which is located
I have XML that looks like <?xml version=1.0?> <ROWSET> <ROW> <AAA_ID>43238</AAA_ID> <BBB_ID>9</BBB_ID> <CCC_COURIER>2</CCC_COURIER> <CCC_FAX>33.44</CCC_FAX>

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.