FWD: [mapserver-users] warning in capabilities XML output
Hao Ding
hdi12 at it.canterbury.ac.nz
Thu Jul 11 16:33:02 PDT 2002
Hi,
The warning disappeared when I add metadata 'WMS_GROUP_TITLE' in the layer
metadata. The new problem is the capabilities XML output is failed to be
parsed.
The code in my program is:
Document xmlDoc = XmlDocument.createXmlDocument(xmlSource)
The 'xmlSource' is the capabilties request UEL.
It works well with the URL
"http://wmt.digitalearth.gov/cgi-bin/wmt.cgi?REQUEST=GetCapabilities", which
is capabilities of the NASA wms map server.
Now I replaced the URL with mine
"http://localhost:8080/cgi-bin/mapserv?map=demo.map&REQUEST=GetCapabilities"
I got the error parse message:
SAXException Illegal character or entity reference syntax.
org.xml.sax.SAXParseException: Illegal character or entity reference syntax.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
at org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:748)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1399)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:315) at
org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:208) at
wms.wmsCatelog.main(wmsCatelog.java:32)
I think there must be something wrong in the capabilities xml output (see
attached file). I am not sure if it is my fault that cause some problems in
the xml output. Thanks for your help!
Regards,
Ding
>===== Original Message From Hao Ding <hdi12 at it.canterbury.ac.nz> =====
Hi,
I set up the mapserver as the WMS server. In the capabilities XML output there
was a warning:
WARNING:Mandatory metadata 'WMS_GROUP_TITLE' was missing in this context
I did not found any discription about the metadata 'WMS_GROUP_TITLE' in the
"Mapserver WMS Server How To". Where should this mandatory metadata be set in
the mapfile? Thanks for any help!
Regards,
Ding
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mapserv.txt
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020712/77c5c66e/attachment.txt>
More information about the MapServer-users
mailing list