That means that the Xml document that you are trying to store in the server is invalid.
The message indicates that line 61 is related to the error.

The details:
Not enough elements to match content model ((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1) Means that the element at line 61 is supposed to have the above items, but does not.

There are currently three versions of the LayerDefinition.xsd which is being validated against (1.0, 1.1 and 1.2). The version can be read from the very first tag's "version" attribute. Version 1.0 does not have a "version" attribute. It is likely that your Xml is a different version than the one being validated against.

Regards, Kenneth, GEOGRAF A/S



Rahul skrev:

Hi ,

I checked the log file and posted the contents in my previous e-mail but i have no idea how to debug this issue.

*Error in the Map Server(MGOS 1.2.0)*

Error: An exception occurred in DB XML component.
Error: XML Indexer: Parse error in document at line, 61, char 12. Parser message: Not enough elements to match content model ((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'

*Error in Apache Web Server*

 [Tue Mar 18 14:43:37 2008] [error] [client 10.0.y.y] FastCGI: server
 "D:/Program Files/MapGuideOpenSource/WebServerExtensions/Php/php-cgi.exe"
  stderr: PHP Fatal error:  Uncaught exception 'mgdbxmlexception' in
Unknown on line 0, referer: http://10.0.x.x:8008/mapguide/Officers/theme/thememain.php

Thks

Max



----- Original Message ----
From: "Kenneth, GEOGRAF A/S" <[EMAIL PROTECTED]>
To: MapGuide Users Mail List <[email protected]>
Sent: Thursday, March 20, 2008 9:29:57 PM
Subject: Re: [mapguide-users] DB XML Component Error in Dynamic Theming

When that error comes, there is usually an entry in the error.log file, which indicates why the Xml was invalid.
This message will hopefully help you in locating the precise problem.
Regards, Kenneth, GEOGRAF A/S

Rahul skrev:

Hi,

I tried the *1.2 Viewer Samples* but unable to get going and the same error -*DB XML Component* Error coming up in the application.In the same application i can perform theming on some sdf files and cannot perform on other files. On the other hand when i tried to do _theming in the MapGuide Studio 2008_ , i can perform the same theming on the the layers with out any error.i am stuck and unable to move forward,how to resolve this Issue.

Thks

Max



----- Original Message ----
From: Jackie Ng <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, March 19, 2008 8:17:55 AM
Subject: Re: [mapguide-users] DB XML Component Error in Dynamic Theming


If I recall:

1 - The Generic Tasks sample was built for MGOS 1.1.0
2 - I think there were schema changes to LayerDefinition in MGOS 1.2.0

Maybe try the 1.2 viewer samples, as are basically the updated version of
the Generic Tasks sample.

- Jackie


max_samart wrote:
>
> Hi ,
>
> Thanks for your reply,i am using MGOS 1.2.0 ,yeh the exception shows
> that not enough elements to match content model , Anyway i will try to
> stylize the layer using the mapguide studio and  capture the xml output
> but what i use for the validation of the LayerDefinition document.
>
> Thks
> Max
>
>
>
> ----- Original Message ----
> From: Jackie Ng <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > To: [email protected] <mailto:[email protected]>
> Sent: Monday, March 17, 2008 10:25:43 PM
> Subject: Re: [mapguide-users] DB XML Component Error in Dynamic Theming
>
>
> It sounds like the layer definition xml does not validate. Are you able to
> capture the xml output of the theme layer and see if it is a valid
> LayerDefinition document?
>
> Also, what version of MapGuide are you using?
>
> - Jackie
>
>
> max_samart wrote:
>>
>> Hi All,
>>          I have some sdf files as Polygons and when i want to use the
>> Dynamic Theming(GT Example), its use to give  mgdbxmlexception error,
>> although I can do dynamic theming on some other sdf layers in the map but
>> on some layers i am getting exception with pid terminated with exit
>> status'0' .Can anybody give some idea reagarding the same in order to
>> proceed further .
>>
>> Thks
>> Max !!
>> ------------------------------------------------------------------------------------------------------
>> ERROR IN THE MAPGUIDE SERVER
>>
>> <2008-03-18T14:43:57> Officer Error: An exception occurred in DB XML
>> component.
>> Error: XML Indexer: Parse error in document at line, 61, char 12. Parser
>> message:
>> Not enough elements to match content model >> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>>  StackTrace:
>>  - MgResourceServiceHandler.ProcessOperation line 80 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ResourceServiceHandler.cpp
>>  - MgOpSetResource.Execute line 109 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\OpSetResource.cpp
>>  - MgServerResourceService.SetResource line 728 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ServerResourceService.cpp
>>  - MgRepositoryManager.SetResource line 867 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\RepositoryManager.cpp
>>  - MgRepositoryManager.AddResource line 840 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\RepositoryManager.cpp
>>  - MgResourceContentManager.AddResource line 183 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ResourceContentManager.cpp
>>  - MgResourceContentManager.PutDocument line 624 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ResourceContentManager.cpp
>>  - MgResourceDefinitionManager.PutDocument line 554 file
>> c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp
>> An exception occurred in DB XML component.
>> Error: XML Indexer: Parse error in document at line, 61, char 12. Parser
>> message: Not enough elements to match content model :
>> '((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'
>>
>>
>> ERROR in the WebServer-
>>
>> [Tue Mar 18 14:43:20 2008] [warn] FastCGI: (dynamic) server "D:/Program >> Files/MapGuideOpenSource/WebServerExtensions/www/mapagent/MapAgent.exe"
>> (pid 4088) terminated with exit with status '0'
>> [Tue Mar 18 14:43:37 2008] [error] [client 10.0.y.y] FastCGI: server
>> "D:/Program Files/MapGuideOpenSource/WebServerExtensions/Php/php-cgi.exe"
>> stderr: PHP Fatal error:  Uncaught exception 'mgdbxmlexception' in
>> Unknown
>> on line 0, referer:
>> http://10.0.x.x:8008/mapguide/Officers/theme/thememain.php
>> [Tue Mar 18 14:43:57 2008] [error] [client 10.0.z.z] FastCGI: server
>> "D:/Program Files/MapGuideOpenSource/WebServerExtensions/Php/php-cgi.exe"
>> stderr: PHP Fatal error:  Uncaught exception 'mgdbxmlexception' in
>> Unknown
>> on line 0, referer:
>> http://10.0.x.x:8008/mapguide/Officers/theme/thememain.php
>>
>>
>> >> ____________________________________________________________________________________
>> Never miss a thing.  Make Yahoo your home page.
>> http://www.yahoo.com/r/hs
>> _______________________________________________
>> mapguide-users mailing list
>> [email protected] <mailto:[email protected]>
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/DB-XML-Component-Error-in-Dynamic-Theming-tp16117523s16610p16118026.html > Sent from the MapGuide Users mailing list archive at Nabble.com <http://nabble.com/>.
>
> _______________________________________________
> mapguide-users mailing list
> [email protected] <mailto:[email protected]>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> > ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> _______________________________________________
> mapguide-users mailing list
> [email protected] <mailto:[email protected]>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>

--
View this message in context: http://www.nabble.com/DB-XML-Component-Error-in-Dynamic-Theming-tp16117523s16610p16135228.html Sent from the MapGuide Users mailing list archive at Nabble.com <http://nabble.com/>.

_______________________________________________
mapguide-users mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapguide-users


------------------------------------------------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search. <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users


-----Inline Attachment Follows-----

_______________________________________________
mapguide-users mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapguide-users


------------------------------------------------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search. <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to