Can you please advice me on the question below?
- Ed

> -----Original Message-----
> From: Ed Bras [mailto:z...@debrasjes.com]
> Sent: donderdag 9 augustus 2012 21:07
> To: jibx-users@lists.sourceforge.net
> Subject: [jibx-users] multiple namespaced in XML root element?
> 
> Hi all,
> 
> How can I define multiple namespaces in the XML root element. And then
> use one of them in the nested elements?
> 
> Example: how can I best map the xml snippet below?
> 
> 
> Note: I prefer not to define the namespace through the jibx <namespace
> /> tag as I get's bloated ... But I can't think of another "standard"
> way.
> The alternative I was thinking of: add the namespace definitions to the
> root element as through the jibx <value /> tag as constants. Then add
> the prefix directly to the name field value in the mapping.
> Example:
>       <mapping class="com.test.RootTest" name="rootTest">
>         <value constant="http://www.bla.com/bd-123"; name="xmlns:bd-123"
> style="attribute" usage="required"/>
>       </mapping>
>       <mapping abstract="true" class="com.test.Element1">
>         <value field="element13" name="bd-123:element-1-3"
> style="element"
> usage="required"/>
>     </mapping>
> 
> Thanks,
> Ed
> 
> The xml snippet that I want to map (XBRL report):
> ----
> <xbrli:xbrl xml:lang="nl"
> xmlns:xbrli="http://www.xbrl.org/2003/instance";
> xmlns:bd-bedr="http://www.nltaxonomie.nl/6.0/basis/bd/items/bd-
> bedrijven"
> xmlns:bd-alg="http://www.nltaxonomie.nl/6.0/basis/bd/items/bd-algemeen";
> xmlns:nl-cd="http://www.nltaxonomie.nl/6.0/basis/sbr/items/nl-common-
> data"
> xlink:href="http://www.nltaxonomie.nl/6.0/report/bd/entrypoints/rpt-bd-
> inkom
> stenbelasting-2011.xsd" />
> 
>       <xbrli:unit id="u0">
>           <xbrli:measure>iso4217:EUR</xbrli:measure>
>       </xbrli:unit>
> 
>       <xbrli:unit id="u1">
>           <xbrli:measure>xbrli:pure</xbrli:measure>
>       </xbrli:unit>
> 
>       <bd-bedr-tuple:TaxData>
> 
>       <bd-bedr:FiscalYear contextRef="cd0curr">2011</bd-
> bedr:FiscalYear>
> 
>       <bd-alg:OperatingSystem
> contextRef="cd0curr">W</bd-alg:OperatingSystem>
> 
>       <bd-bedr-tuple:PartyFilingTaxReturnTitle>
> 
>       <nl-cd:DateOfBirth
> contextRef="cd0curr">1974-08-24</nl-cd:DateOfBirth>
> </xbrli:xbrl>
> 
> 
> -----------------------------------------------------------------------
> -------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions will include endpoint security, mobile security and the
> latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to