[mapguide-users] RE: Exporting as XML

Ben Trumbore ben.trumbore at autodesk.com
Fri Jul 7 14:28:52 EDT 2006


I think that the ">" in this filter may be causing the problem.  There
are five characters that must be "escaped"
<http://www.w3schools.com/xml/xml_cdata.asp>  when included in a layer's
XML (", ', &, < and >) to allow for proper parsing.  In this case, your
filter line should be:

 

      <Filter>YRBUILT &gt; 1950</Filter>

 

When a programmatically created layer model is serialized, this escaping
is peformed as part of the process.  If you create the XML directly, you
need to do it explicitly.

 

Ben

 

-----Original Message-----
From: newjim [mailto:j_oleary_ed at yahoo.ca] 
Sent: Friday, July 07, 2006 10:57 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] RE: Exporting as XML

 

 

I studied the LayerDefinition-1.0.0.xsd schema and realized that I had
put

the <Filter>YRBUILT > 1950</Filter> line in the Dev Guide example in the

wrong place. I got it to validate, but now it crashes with a parse
error.

Please see the next posting about this posting.

-- 

View this message in context:
http://www.nabble.com/Exporting-as-XML-tf1904164.html#a5218898

Sent from the OSGeo MapGuide forum at Nabble.com.

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org

For additional commands, e-mail: users-help at mapguide.osgeo.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_users/attachments/20060707/8ff66a09/attachment.html


More information about the Mapguide_users mailing list