HI David
You'll need to add a namespace element to your mapping.
Try:
<namespace uri="urn:SmartResults" default="all" prefix="ls"/>
as the first child of the mapping element.
regards
nigel.
David Peterson wrote:
I'm trying to setup a binding file for XML that contains a xmlns
attribute, but cannot seem to figure out how to do it and don't
see any examples. I basically don't have any need to process the
xmlns:ls="urn:SmartResults" attribute. I just want the binding
compiler to ignore it and not throw runtime errors.
<?xml version="1.0" encoding="UTF-8" ?>
<ls:SmartResults xmlns:ls="urn:SmartResults">
<ls:ssResultSet ls:firstResult="1" ls:numResults="1" ls:totalHits="1">
<ls:ssResult ls:id="1">
<ls:abstract>
<![CDATA[Get a quote! Find info here!]]>
</ls:abstract>
<ls:title><![CDATA[Insurance Info]]></ls:title>
<ls:url>
<![CDATA[http://www.site.com/og/pr=Psr;;746896;z?http://www.example.com/insurance]]>
</ls:url>
<ls:displayUrl><![CDATA[http://www.example.com/insurance]]></ls:displayUrl>
<ls:pric>0.82</ls:pric>
</ls:ssResult>
</ls:ssResultSet>
</ls:SmartResults>
<mapping name=/"SmartResults"/ ordered=/"false"/
class=/"com.mysite.xmlfeed.providers.FeedResults"/>
<value name=/"urn:SmartResults"/ style=/"attribute"/
usage=/"optional"/ />
<collection name=/"ssResultSet"/ field=/"adList"/
factory=/"com.mysite.xmlfeed.Results.listFactory"/>
<structure name=/"ssResult"/
type=/"com.mysite.xmlfeed.providers.MyObject"/ ordered=/"false"/>
<value name=/"abstract"/ field=/"description"/ usage=/"optional"/ />
<value name=/"title"/ field=/"name"/ usage=/"optional"/ />
<value name=/"url"/ field=/"redirect"/ usage=/"optional"/ />
<value name=/"displayUrl"/ field=/"displayUrl"/ usage=/"optional"/ />
<value name=/"pric"/ field=/"cpc"/ />
</structure>
</collection>
</mapping>
------------------------------------------------------------------------
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
------------------------------------------------------------------------
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users