|
Hello, how can i avoid namespace-prefix in every
element when marshalling, e.g.: <iso19115:MD_Metadata
xsi:schemaLocation="http://www.isotc211.org/iso19115/
iso19115.xsd"
xmlns:iso19115="http://www.isotc211.org/iso19115/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<iso19115:identificationInfo>
<iso19115:citation>
<iso19115:title>geographic …..</iso19115:title>
……… This is the result, when I set namespace
mapping
marshaller.setNamespaceMapping("iso19115",
"http://www.isotc211.org/iso19115/"); if not set, the result is: <MD_Metadata xsi:schemaLocation="http://www.isotc211.org/iso19115/
../iso19115.xsd" xsi:type="MD_MetadataType" xmlns="http://www.isotc211.org/iso19115/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<identificationInfo>
<citation>
<title xmlns="">String</title> Iso19115 is the targetNamespace in
the iso19115.xsd <xsd:schema targetNamespace="http://www.isotc211.org/iso19115/"xmlns:iso19115="http://www.isotc211.org/iso19115/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="0.7"
elementFormDefault="unqualified"> ..... I find no solution, Keith Viscos
suggestion, to remove the targetNamespace is not possible thanks in advance Rainer Haener |
