{"action":"created","issue":{"url":"https://api.github.com/repos/highsource/jsonix/issues/87","labels_url":"https://api.github.com/repos/highsource/jsonix/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/highsource/jsonix/issues/87/comments","events_url":"https://api.github.com/repos/highsource/jsonix/issues/87/events","html_url":"https://github.com/highsource/jsonix/issues/87","id":86487662,"number":87,"title":"How to set default namespace in marshalling process","user":{"login":"htulipe","id":1255457,"avatar_url":"https://avatars.githubusercontent.com/u/1255457?v=3","gravatar_id":"","url":"https://api.github.com/users/htulipe","html_url":"https://github.com/htulipe","followers_url":"https://api.github.com/users/htulipe/followers","following_url":"https://api.github.com/users/htulipe/following{/other_user}","gists_url":"https://api.github.com/users/htulipe/gists{/gist_id}","starred_url":"https://api.github.com/users/htulipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htulipe/subscriptions","organizations_url":"https://api.github.com/users/htulipe/orgs","repos_url":"https://api.github.com/users/htulipe/repos","events_url":"https://api.github.com/users/htulipe/events{/privacy}","received_events_url":"https://api.github.com/users/htulipe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-09T07:24:03Z","updated_at":"2015-06-09T07:26:09Z","closed_at":null,"body":"Hi,\r\n\r\nI put a SOS XML message through an SOS 1.0.0 unmarshaller and got the following JSON:\r\n\r\n    {\r\n      \"name\": {\r\n        \"namespaceURI\": \"http://www.opengis.net/sos/1.0\",\r\n        \"localPart\": \"GetFeatureOfInterest\",\r\n        \"prefix\": \"\",\r\n        \"key\": \"{http://www.opengis.net/sos/1.0}GetFeatureOfInterest\",\r\n        \"string\": \"{http://www.opengis.net/sos/1.0}GetFeatureOfInterest\"\r\n      },\r\n      \"value\": {\r\n        \"TYPE_NAME\": \"SOS_1_0_0.GetFeatureOfInterest\",\r\n        \"service\": \"SOS\",\r\n        \"version\": \"1.0.0\",\r\n        \"featureOfInterestId\": [\r\n          \"http://mysite.com/sos/featureOfInterest/300\",\r\n          \"http://mysite.com/sos/featureOfInterest/190\",\r\n          \"http://mysite.com/sos/featureOfInterest/111\",\r\n          \"http://mysite.com/sos/featureOfInterest/3\"\r\n        ]\r\n      }\r\n    }\r\n\r\nI would like now to marshall it back to XML. The output looks OK but the parent element `GetFeatureOfInterest` is namespaced, something like:\r\n\r\n    <p0:GetFeatureOfInterest xmlns:p0=\"http://www.opengis.net/sos/1.0\">...</p0:GetFeatureOfInterest>\r\n\r\nHow could I tell the marshaller to use default namespace. I would like an output like this:\r\n\r\n    <GetFeatureOfInterest xmlns=\"http://www.opengis.net/sos/1.0\">...</GetFeatureOfInterest>\r\n\r\nThanks for having created Jsonix"},"comment":{"url":"https://api.github.com/repos/highsource/jsonix/issues/comments/110258108","html_url":"https://github.com/highsource/jsonix/issues/87#issuecomment-110258108","issue_url":"https://api.github.com/repos/highsource/jsonix/issues/87","id":110258108,"user":{"login":"highsource","id":6707996,"avatar_url":"https://avatars.githubusercontent.com/u/6707996?v=3","gravatar_id":"","url":"https://api.github.com/users/highsource","html_url":"https://github.com/highsource","followers_url":"https://api.github.com/users/highsource/followers","following_url":"https://api.github.com/users/highsource/following{/other_user}","gists_url":"https://api.github.com/users/highsource/gists{/gist_id}","starred_url":"https://api.github.com/users/highsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highsource/subscriptions","organizations_url":"https://api.github.com/users/highsource/orgs","repos_url":"https://api.github.com/users/highsource/repos","events_url":"https://api.github.com/users/highsource/events{/privacy}","received_events_url":"https://api.github.com/users/highsource/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T07:26:09Z","updated_at":"2015-06-09T07:26:09Z","body":"Please see:\n\nhttps://github.com/highsource/jsonix/wiki/Configuring-Namespace-Prefixes\n\nPlease try \"http://www.opengis.net/sos/1.0\" : \"\" mapping.\n\n\"http://www.opengis.net/sos/1.0\" : \"sos\" should work in any case.\n\n\nOn Tue, Jun 9, 2015 at 9:24 AM, Hadrien <notifications@github.com> wrote:\n\n> Hi,\n>\n> I put a SOS XML message through an SOS 1.0.0 unmarshaller and got the\n> following JSON:\n>\n> {\n>   \"name\": {\n>     \"namespaceURI\": \"http://www.opengis.net/sos/1.0\",\n>     \"localPart\": \"GetFeatureOfInterest\",\n>     \"prefix\": \"\",\n>     \"key\": \"{http://www.opengis.net/sos/1.0}GetFeatureOfInterest\",\n>     \"string\": \"{http://www.opengis.net/sos/1.0}GetFeatureOfInterest\"\n>   },\n>   \"value\": {\n>     \"TYPE_NAME\": \"SOS_1_0_0.GetFeatureOfInterest\",\n>     \"service\": \"SOS\",\n>     \"version\": \"1.0.0\",\n>     \"featureOfInterestId\": [\n>       \"http://mysite.com/sos/featureOfInterest/300\",\n>       \"http://mysite.com/sos/featureOfInterest/190\",\n>       \"http://mysite.com/sos/featureOfInterest/111\",\n>       \"http://mysite.com/sos/featureOfInterest/3\"\n>     ]\n>   }\n> }\n>\n> I would like now to marshall it back to XML. The output looks OK but the\n> parent element GetFeatureOfInterest is namespaced, something like:\n>\n> <p0:GetFeatureOfInterest xmlns:p0=\"http://www.opengis.net/sos/1.0\">...</p0:GetFeatureOfInterest>\n>\n> How could I tell the marshaller to use default namespace. I would like an\n> output like this:\n>\n> <GetFeatureOfInterest xmlns=\"http://www.opengis.net/sos/1.0\">...</GetFeatureOfInterest>\n>\n> Thanks for having created Jsonix\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/highsource/jsonix/issues/87>.\n>\n"}}