XNA Creators Club Online
Page 1 of 1 (7 items)
Sort Posts: Previous Next

Excluding xml files from the content pipeline

Last post 10/26/2009 10:42 PM by Brandon Perryman. 6 replies.
  • 10/26/2009 9:58 PM

    Excluding xml files from the content pipeline

    I've been working with the net rumble starter package, and am trying to add a new xml file under the Particles directory.

    From what I can tell, these xml files are just serialized instances of ParticleEffect data objects.

    So I add it, and when i go to run the program, it tells me this:

    "Error 73 XML is not in the XNA intermediate format. Missing XnaContent root element."

    It's the exact same file as one already in the directory, just with a different name, and under content/obj/.../ContentPipeline.xml, my new xml file is the only one that has an entry in it.

    The other xml files in the particles directory must be excluded somehow, but I have no idea how/where this is done. I've been looking everywhere and I'm just not seeing anything helpful. Anyone know what's wrong?

    Thanks in advance.

    Jason
  • 10/26/2009 10:05 PM In reply to

    Re: Excluding xml files from the content pipeline

    In the Solution Explorer, right click on the item you want to exclude and select Exclude from Project.
  • 10/26/2009 10:07 PM In reply to

    Re: Excluding xml files from the content pipeline

    Select the file in Solution Explorer, hit F4 to bring up the Properties Window, set Build Action to Content and Copy To Output Directory to Copy If Newer.
    Cheers, Paul Cunningham Pumpkin Games
  • 10/26/2009 10:16 PM In reply to

    Re: Excluding xml files from the content pipeline

    That did it. Thanks a lot!
  • 10/26/2009 10:28 PM In reply to

    Re: Excluding xml files from the content pipeline

    You're very welcome, but I think there's a slightly more complex problem evolving here.  I'm not an expert on the ContentPipeline, but if it says that the XML isn't in "intermediate" format that means that it's not being processed.  Not sure to what extent you want to use the file, if at all.
  • 10/26/2009 10:35 PM In reply to

    Re: Excluding xml files from the content pipeline

    Brandon Perryman:
    You're very welcome, but I think there's a slightly more complex problem evolving here.  I'm not an expert on the ContentPipeline, but if it says that the XML isn't in "intermediate" format that means that it's not being processed.  Not sure to what extent you want to use the file, if at all.

    He says in his post that he's just adding a new xml file that is a copy of one already there so in this instance, he doesn't want the Content Pipeline to compile his xml file.  That's why he should set the build action to Content and have it copied to the output directory - then he'll just use standard xml classes to load / deserialise the file.

    Basically all you need to do is make sure that the new file you added has the same properties as the existing xml files in that folder.
    Cheers, Paul Cunningham Pumpkin Games
  • 10/26/2009 10:42 PM In reply to

    Re: Excluding xml files from the content pipeline

    PaulCunningham:
    He says in his post that he's just adding a new xml file that is a copy of one already there so in this instance, he doesn't want the Content Pipeline to compile his xml file.  That's why he should set the build action to Content and have it copied to the output directory - then he'll just use standard xml classes to load / deserialise the file.

    Basically all you need to do is make sure that the new file you added has the same properties as the existing xml files in that folder.


    okay, I understand what you mean now.  I apparently misunderstood the end goal of what he was trying to do.  Guess I got stuck on "Exclude Files"
Page 1 of 1 (7 items) Previous Next