Results 1 to 5 of 5

Thread: XML problem

  1. #1

    Exclamation XML problem

    I have a xml resource file:

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <recources>
    	<section name="Game">
    		<sprite
    			name="Car1"
    			description="Car 1"
    			id="car1">
    			<image file="car1.png" />
    		</sprite>
    	</section>
    </resources>
    When I run the program it comes up with "Not a valid XML resource file."

    Could you tell me what is going wrong?

  2. #2
    Lesser Knight
    Join Date
    Sep 2006
    Posts
    41

    Default

    You're closing the <sprite> tag twice, once with /> (the equivalent of </sprite>), and again with </sprite>.

    Try it with either the self-closing end bracket "/>", or with a normal end bracket ">" and a closing tag "</sprite>"

  3. #3

    Default

    <?xml version="1.0" encoding="iso-8859-1"?>
    <recources>
    <section name="Game">
    <sprite
    name="Car1"
    description="Car 1"
    id="car1"> this doesnt self close
    <image file="car1.png" /> this line is the image tag, which is self-closing
    </sprite> this closes the sprite tag
    </section>
    </resources>


    your info didn't really work, unless i interpreted what you said wrong...

  4. #4
    Peasant
    Join Date
    Nov 2006
    Location
    Laval, Qc, Canada
    Posts
    5

    Default

    You mispelled "resources" wrong on the second line, look:

    <recources>

    should be:

    <resources>

  5. #5

    Default

    Thankyou so much!

Similar Threads

  1. bow problem
    By rabidwolf9 in forum Dink Smallwood HD
    Replies: 0
    Last Post: 12-23-2004, 08:28 PM
  2. Problem
    By Dorian1 in forum Dink Smallwood HD
    Replies: 2
    Last Post: 08-26-2004, 04:42 AM
  3. Problem
    By Wishchrono in forum Dink Smallwood HD
    Replies: 1
    Last Post: 08-24-2004, 06:57 PM
  4. Problem
    By in forum Other RTsoft Games
    Replies: 2
    Last Post: 06-09-2003, 06:12 PM
  5. FQ Problem
    By in forum Funeral Quest
    Replies: 5
    Last Post: 08-18-2002, 10:28 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •