[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qexo-general] problem with namespace and multiple document
From: |
jvinel |
Subject: |
[Qexo-general] problem with namespace and multiple document |
Date: |
Mon, 6 Jan 2003 13:48:37 +0100 (CET) |
Hello,
1) I would like to unify data contained in two xml document into a single
file ...
Here is the first file doc1.xml :
<City xmlns:gml="http://www.opengis.net/gml">
<River>
<gml:description>The river that runs through
Cambridge.</gml:description>
<gml:name>Cam</gml:name>
<gml:centerLineOf>
</River>
</City>
this file use a prefix "gml" for the namespace http://www.opengis.net/gml.
and the second doc2.xml :
<City xmlns:geo="http://www.opengis.net/gml">
<Road>
<geo:name>M11</geo:name>
</Road>
</City>
this file use a prefix "geo" for the same namespace
http://www.opengis.net/gml.
Is it possible to reassemble this two files into one, and to have a single
prefix for http://www.opengis.net/gml ?
For example (geo->gml) :
<City xmlns:gml="http://www.opengis.net/gml">
<River>
<gml:description>The river that runs through
Cambridge.</gml:description>
<gml:name>Cam</gml:name>
<gml:centerLineOf>
</River>
<Road>
<gml:name>M11</geo:name>
</Road>
</City>
2) I write a consumer who must know the prefix name for a namespace, Is it
possible ?
Thanks and Happy New Year,
Julien
- [Qexo-general] problem with namespace and multiple document,
jvinel <=