commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas W <>
Subject Betwixt 0.8 and XML namespace definitions
Date Tue, 06 Oct 2009 14:29:19 GMT
I have the following definition for one of my classes:

saved in a file OaDC.betwixt

<?xml version="1.0"?>
<info primitiveTypes="element">
  <element name="dc" uri="">
    <element name="title" property="title" uri=""/>
    <element name="creator" property="creator" uri=""/>
    <element name="publisher" property="publisher" uri=""/>
    <element name="description" property="description" uri=""/>
    <element name="identifier" property="identifier" uri=""/>
    <element name="subject" property="subject" uri=""/>

The beanwriter has  extra configuration of the NamespacePrefixMapper like

prefixMapper.setPrefix("", "dc");

However the XML generated is like this:

<oai_dc:dc xmlns:oai_dc="">
    <dc:title xmlns:dc="">Sample
    <dc:creator>Sample Creator</dc:creator>
    <dc:publisher>Sample Publisher</dc:publisher>
    <dc:description>Sample Description</dc:description>
    <dc:identifier>Sample Identifier</dc:identifier>
    <dc:subject>Sample Subject</dc:subject>

This seems to be causing a problem in that the xmlns:dc definition either
should be repeated for every dc element, or should be in the parent element.
Could anyone please let me know If I am doing anything wrong, or if I should
file a bug in buzilla!

Thanks in advance,
Nicholas W.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message