[castor-dev] Re: [castor-user] An immediate fix required on CASTOR-3222

2012-06-11 Thread Werner Guttmann

Hi John,

first you tell people on the user list to use other products because 
Castor does not meed your expectations, now you are asking for an 
immediate fix ?


Let me clarify a few things:

* This is an open source project.
* As such, feel free to contribute as much as you want or can ?
* If you supply me with a patch for the issue in question, I am more 
than happy to assess it and commit it (if possible).
* Otherwise, please consider taking up professional services if you 
really need urgent help.


Kind Regards
Werner Guttmann


On 07.06.2012 19:40, J p wrote:

Hi Werner,

As i am working on a hot project, i need an immediate response on the
bug http://jira.codehaus.org/browse/CASTOR-3222.

then only i can go further with my work.

Please do the needful help on this issue

Thanks,
John


-
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




[castor-user] Problem reading namespace (newbie)

2012-06-11 Thread crazykz

Hi,

I'm trying to read in a GPX file and the header looks like this:
gpx
  version=1.0
  creator=GPSBabel - http://www.gpsbabel.org;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns=http://www.topografix.com/GPX/1/0;
  xsi:schemaLocation=http://www.topografix.com/GPX/1/0
http://www.topografix.com/GPX/1/0/gpx.xsd;

I've created the mapping and up until now have excluded everything in the
GPX header to get the mapping correct.  Now I'm trying to add in the 5
attributes of the GPX header that are here and I'm getting an error.  I'm
sure it's because I don't know how to configure the mapping with the proper
namespace prefix or something like that.

Here's the relevant mapping part:
class name=parser.GPX
map-to xml=gpx ns-uri=http://www.topografix.com/GPX/1/0;
  ns-prefix=/
field name=version type=java.lang.String
bind-xml name=version node=attribute /
/field
field name=creator type=java.lang.String
bind-xml name=creator node=attribute /
/field
field name=xmlnsXsi type=java.lang.String
bind-xml name=xmlns:xsi node=attribute /
/field
field name=xmnls type=java.lang.String
bind-xml name=xmnls node=attribute /
/field
field name=xsiSchemaLocation type=java.lang.String
bind-xml name=xsi:schemaLocation node=attribute /
/field
/class

Here's the error output I'm getting:
org.exolab.castor.xml.MarshalException: The namespace associated with the
prefix: 'xmlns' is null.{File: file: GPXMapping.xml; line: 17; column: 50}

Would anyone be able to help me with how to properly map this if that is the
issue?

Thanks,
Curt

-- 
View this message in context: 
http://old.nabble.com/Problem-reading-namespace-%28newbie%29-tp33996053p33996053.html
Sent from the Castor - User mailing list archive at Nabble.com.


-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email