<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I can get a similar exception if I type in<br>
Library://tank.MapDefinition<br>
as the resource id, if I type:<br>
Library://tank.LayerDefinition<br>
it all goes fine.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Kenneth, GEOGRAF A/S wrote:
<blockquote cite="mid46643F5B.9020209@geograf.dk" type="cite">
  <meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
I've tried validating it. I validates fine for me.<br>
I can also upload it using the test form. It shows in studio, but I
don't have the featuresource.<br>
  <br>
It would appear that the XSD files are broken in your install, or
something happened when you posted and I downloaded.<br>
If possible, try uninstalling, remove the entire folder C:\Program
Files\MapGuideOpenSource, and reinstall.<br>
Remember to backup any data you want to save. You might use the package
manager in the site admin for this purpose.<br>
  <br>
I was using MapGuide 1.2 Beta 2 for my testing.<br>
  <pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
  </pre>
  <br>
  <br>
martijni wrote:
  <blockquote cite="mid10952225.post@talk.nabble.com" type="cite">
    <pre wrap="">Kenneth,

Thanks for your reaction.
I uploaded the xml file for you. Take a look at it. I did a validation check
and received no errors. 
As far as I can see it's using UTF-8. Maybe i'm wrong ofcourse.... :)





Kenneth, GEOGRAF A/S wrote:
  </pre>
    <blockquote type="cite">
      <pre wrap="">That probably means that the document you upload does not validate 
according to the XSD schema.
You can find the XSD Schema's in the "Schema" folder where you installed 
MapGuide.
There are free xml validators on the web, that will give you more detail 
on what went wrong.

Be aware that there is a different schema for each resource type.
Also, you MUST use UTF-8 encoding (it will not give the above error, but 
won't display the map).

Regards, Kenneth, GEOGRAF A/S




martijni wrote:
    </pre>
      <blockquote type="cite">
        <pre wrap="">James,

I doubt that I misstyped the resource ID, because I tried different
resource
ID's to make sure it wasn't a typo. Each time I receive this exception:

An exception occurred in the XML parser.
An exception occurred in the XML parser. Exception occurred in method
MgResourceContentManager.ValidateDocument at line 586 in file
c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\resource\ResourceContentManager.cpp 

Don't know if this gives you some more information...?





James Card wrote:
  
      </pre>
        <blockquote type="cite">
          <pre wrap="">On Fri, 01 Jun 2007 06:48:01 -0700, martijni <a
 class="moz-txt-link-rfc2396E" href="mailto:mis@gemeentehulst.nl">&lt;mis@gemeentehulst.nl&gt;</a>
wrote:

    
        </pre>
          <blockquote type="cite">
            <pre wrap="">I understand what you say, but do I have to reload the XML using the
mapagent interface like this way:
Resource --&gt; SetResource --&gt; Resource ID is location where the file
will  
be placed
Content is the location of the xml file
Header is empty

But when I did it this way I received an exception. Is this the way you
should do it, or did you mean something else?
      
          </pre>
          </blockquote>
          <pre wrap="">That is exactly the procedure we use here. Did you mistype the Resource  
ID? Is your XML file valid?

-- 
James Card
California CAD Solutions, Inc.
209 578-5580
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext"
 href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    
        </pre>
        </blockquote>
        <pre wrap="">  
      </pre>
      </blockquote>
      <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext"
 href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
    </blockquote>
    <pre wrap=""><!----><a class="moz-txt-link-freetext"
 href="http://www.nabble.com/file/p10952225/tanks.LayerDefinition.xml">http://www.nabble.com/file/p10952225/tanks.LayerDefinition.xml</a>
tanks.LayerDefinition.xml 
<a class="moz-txt-link-freetext"
 href="http://www.nabble.com/file/p10952225/tanks.LayerDefinition.xml">http://www.nabble.com/file/p10952225/tanks.LayerDefinition.xml</a>
tanks.LayerDefinition.xml 
  </pre>
  </blockquote>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>