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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:45:41+00:00 2026-06-14T05:45:41+00:00

I have the following xml file as output from a program: <?xml version=’1.0′ encoding=’ISO-8859-1′?>

  • 0

I have the following xml file as output from a program:

<?xml version='1.0' encoding='ISO-8859-1'?>
<rsp stat='ok'>
<results total='5'>
<result cover='http://ia.media-imdb.com/images/M/MV5BMjMyOTM4MDMxNV5BMl5BanBnXkFtZTcwNjIyNzExOA@@._V1._SX54_CR0,0,54,74_.jpg' title='The Amazing Spider-Man 'year='2012' director='Marc Webb' rating='7.3' details='/title/tt0948470/' />
<result cover='http://i.media-imdb.com/images/SF1f0a42ee1aa08d477a576fbbf7562eed/realm/feature.gif' title='The Amazing Spider-Man 2 'year='2014' director='Marc Webb' rating='N.A.' details='/title/tt1872181/'/>
<result cover='http://ia.media-imdb.com/images/M/MV5BMzk3MTE5MDU5NV5BMl5BanBnXkFtZTYwMjY3NTY3._V1._SX54_CR0,0,54,74_.jpg' title='Spider-Man 'year='2002' director='Sam Raimi' rating='7.3' details='/title/tt0145487/'/>
<result cover='http://ia.media-imdb.com/images/M/MV5BODUwMDc5Mzc5M15BMl5BanBnXkFtZTcwNDgzOTY0MQ@@._V1._SX54_CR0,0,54,74_.jpg' title='Spider-Man 3 'year='2007' director='Sam Raimi' rating='6.3' details='/title/tt0413300/'/>
<result cover='http://ia.media-imdb.com/images/M/MV5BMjE1ODcyODYxMl5BMl5BanBnXkFtZTcwNjA1NDE3MQ@@._V1._SX54_CR0,0,54,74_.jpg' title='Spider-Man 2 'year='2004' director='Sam Raimi' rating='7.5' details='/title/tt0316654/'/>
</results>
</rsp>

But when i save it as xml file and open it in browser it shows attribute construct error. WHY ??

  • 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-14T05:45:42+00:00Added an answer on June 14, 2026 at 5:45 am

    You have to separate attribute values from the names of other attributes with whitespace characters. Notice that year immediately follows the value of title. You simply misplaced a couple of spaces.

    title='The Amazing Spider-Man 'year='2012'

    You have to change it to

    title='The Amazing Spider-Man' year='2012'

    The following document should render properly.

    <?xml version='1.0' encoding='ISO-8859-1'?>
    <rsp stat='ok'>
      <results total='5'>
        <result cover='http://ia.media-imdb.com/images/M/MV5BMjMyOTM4MDMxNV5BMl5BanBnXkFtZTcwNjIyNzExOA@@._V1._SX54_CR0,0,54,74_.jpg' title='The Amazing Spider-Man' year='2012' director='Marc Webb' rating='7.3' details='/title/tt0948470/' />
        <result cover='http://i.media-imdb.com/images/SF1f0a42ee1aa08d477a576fbbf7562eed/realm/feature.gif' title='The Amazing Spider-Man 2' year='2014' director='Marc Webb' rating='N.A.' details='/title/tt1872181/'/>
        <result cover='http://ia.media-imdb.com/images/M/MV5BMzk3MTE5MDU5NV5BMl5BanBnXkFtZTYwMjY3NTY3._V1._SX54_CR0,0,54,74_.jpg' title='Spider-Man' year='2002' director='Sam Raimi' rating='7.3' details='/title/tt0145487/'/>
        <result cover='http://ia.media-imdb.com/images/M/MV5BODUwMDc5Mzc5M15BMl5BanBnXkFtZTcwNDgzOTY0MQ@@._V1._SX54_CR0,0,54,74_.jpg' title='Spider-Man 3' year='2007' director='Sam Raimi' rating='6.3' details='/title/tt0413300/'/>
        <result cover='http://ia.media-imdb.com/images/M/MV5BMjE1ODcyODYxMl5BMl5BanBnXkFtZTcwNjA1NDE3MQ@@._V1._SX54_CR0,0,54,74_.jpg' title='Spider-Man 2' year='2004' director='Sam Raimi' rating='7.5' details='/title/tt0316654/'/>
      </results>
    </rsp>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XML output from an API <?xml version='1.0' encoding='UTF-8'?> <Response> <ReturnRow
I have the following XML file:- <?xml version=1.0 encoding=UTF-8?> <viewentries> <viewentry position=1> <entrydata columnnumber=0>
I have the following XML layout file, HELPME.XML <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent
I have the following invalid XML file: <?xml version=1.0 encoding=utf-8 ?> <Page num=1 crop_box=0,
I have the following file Log4net.config in my bin directory: <?xml version=1.0 encoding=utf-8 ?>
I have a xml file which has the following header: <?xml version=1.1 encoding=UTF-8?> .
I have the following code which outputs an object to an XML file: using
I have following xml file: <ab> <![CDATA[ <table> <tbody> <tr> <th>abcdef</th> </tr> <tr> <p>
I have the following XML File: <persons> <person name=shawn> <age>34</age> <hair style=spikes>red</hair> </person> <person
I have the following xml file: <xfa:data> <form1> <Page1> <Page2> <contractInfo> ... </contractInfo> <paymentInfo>

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.