Jump to content
  • Advertisement
Sign in to follow this  
lord_balron

Custom XML Content Importer Issues

This topic is 2943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've been trying to read in a file of XML with my custom content importer.
<?xml version="1.0" encoding="utf-8" ?> 
<GUIWindow> 
  <ScrollBar name="scroll"> 
    <Max>100</Max> 
    <Min>0</Min> 
    <CurrentValue>100</CurrentValue> 
    <Background>/GUI/back</Background> 
    <ActivePart>/GUI/top</ActivePart> 
    <X>100.0f</X> 
    <Y>100.0f</Y> 
  </ScrollBar> 
</GUIWindow>

The issue is that when the content compiler goes to compile the file it gets to an int and fails returning: Error 10 Building content threw ArgumentNullException: Value cannot be null. I parse the int with max = int.Parse(node2.Value), but this is failing, without this (and the other int parses) the build completes. Without seeing the values that its reading I don't know where to start. I'm not serializing the data as I believe it would be unwieldy for what I'm doing (the example above is much simpler than other data sets). Thanks in advance for any help. -R [Edited by - lord_balron on May 4, 2010 5:36:47 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!