473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

GML validation and XPath

Hello all,

I am using the oXygen XML editor to create and edit some GML files. I am
having some problems though, and wondered if anyone may be able to help.

1. The GML (Geographic Markup Language) schema never wants to correctly
validate. Why is this? The following errors occur in the applcation .xsd
file:
Location: 21:70
Description: E src-resolve: Cannot resolve the name
'gml:geometryPropertyType' to a(n) 'type definition' component.
URL: http://www.w3.org/TR/xmlschema-1/#src-resolve

and in the OpenGIS reference schema geometry.xsd the following two errors
appear 3 times (one each for MultiPolygonType, MultiLineStringType and
MultiPointType)
Location: 297:40
Description: E rcase-RecurseLax.2: There is not a complete functional
mapping between the particles.
URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax

Location: 297:40
Description: E derivation-ok-restriction.5.4.2: Error for type
'MultiPolygonType'. The particle of the type is not a valid restriction of
the particle of the base.
URL: http://www.w3.org/TR/xmlschema-1/#de...ok-restriction

2. Whenever I try to specify an XPath in this document I receive a message
saying XPath returned no results. Queries I have used include
//FeatureCollection and //FeatureCollection/gml:featureMember

<?xml version="1.0" encoding="UTF-8"?>
<FeatureCollection xmlns="http://mydomain/schemas"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xsi:schemaLocation="http://mydomain/schemas event3.xsd">

<gml:boundedBy><gml:Box><gml:coordinates>100,100,1 00,100</gml:coordinates></gml:Box></gml:boundedBy>
<gml:featureMember>
<event>
<geometryProperty>
<gml:Point>
<gml:coordinates>100,100</gml:coordinates>
</gml:Point>
</geometryProperty>
<siteCode>AL1234</siteCode>
<date>2004-10-10</date>
<locationDescription>Somewhere</locationDescription>
<eventType>Excavation</eventType>
<period>Roman</period>
</event>
</gml:featureMember>
</FeatureCollection>
If anyone can help, I'd be very grateful.

Many thanks

Andrew L

Sysinfo:
oXygen 3.0
Xerces-J 2.6.0
Xalan Java 2.5.1
JVM IBM 1.4.1
Mandrake Linux 9 w/2.4.21 kernel
Jul 20 '05 #1
0 1764

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mike | last post by:
Related to another topic I just posted, I wanted to discuss ways to optimize the validation of very large (>100MB) XML documents. First, I have no idea if something like this already exists; it...
2
by: Olaf Meyer | last post by:
Apprentently xerces 2.6.0 (Java) does not validate against contraints specified in the schema (e.g. constraints specified via unique element). The validation works with the XML editor I'm using...
0
by: Marc A. Criley | last post by:
Is there any sort of formal or informal suite of XPath validation tests, i.e., a collection of XML files and related XPath queries? Such as would be used to validate the operation of an XPath...
2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
5
by: Galen Harris | last post by:
I'm getting weird errors during transformations -- "System.Net.WebException. The remote server returned an error: (500) Internal Server Error." I'm on the 1.0 Framework. I've looked through...
2
by: Sudip Chakraborty | last post by:
Is there a way to see constraint validation errors while loading xml into a DataSet ? I'm interested in the line number in the xml file which is causing the error. I've enclosed the relevant stack...
3
by: paul | last post by:
Hi, My code won't validate the xml document. I'm using vb.net. In the IDE I can use the schema to validate the XML. But when I use XmlValidatingReader in code it does not pick any restrictions. ...
4
by: jasonnerothin | last post by:
I'm trying to figure out exactly what's going wrong with an xpath keyref validation scenario. In brief, I have something like the following in my xsd: <xs:schema> <xs:complexType...
5
by: paul_zaoldyeck | last post by:
does anyone know how to validate an xml file against multiple defined schema? can you show me some examples? i'm making here an xml reader.. thank you
4
by: syed.akhlaq | last post by:
Hi, Does anyone know how can I validate XPath expressions using xsd schema? Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.