URL Serializer removing default namespace

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

URL Serializer removing default namespace

Ryan Puddephatt

Hi all,

            I have noticed that the URL Serializer is removing the default namespace from XML files when saving them. This is causing a problem in my application as I explicitly call the elements using a prefix in another part of my application

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: URL Serializer removing default namespace

Erik Bruchez
Administrator
Ryan,

To what protocol are you writing to? There are two different branches in
URLSerializer depending on whether your are using "oxf:" or other
protocols such as "file:".

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             I have noticed that the URL Serializer is removing the
> default namespace from XML files when saving them. This is causing a
> problem in my application as I explicitly call the elements using a
> prefix in another part of my application
>
>  
>
> Thanks
>
>  
>
> Ryan
>
>  
>
> *Ryan Puddephatt*
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>  
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108
>
>  
>
>  
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: URL Serializer removing default namespace

Stephen Bayliss
In reply to this post by Ryan Puddephatt

Hi Ryan

 

When you say “removing the default namespace”, is it replacing it with a prefixed namespace instead?

 

For instance

replacing <my-root-node xmlns=”http://www.example.org/test”>

with (for example) <ns1:my-root-node xmlns:ns1=http://www.example.org/test>

 

If that’s the case, then it’s not, technically, doing anything wrong as the XML is actually the “same” from an XML processing perspective.

 

Or is it a different issue?

 

Steve

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 12 June 2006 12:10
To: [hidden email]
Subject: [ops-users] URL Serializer removing default namespace

 

Hi all,

            I have noticed that the URL Serializer is removing the default namespace from XML files when saving them. This is causing a problem in my application as I explicitly call the elements using a prefix in another part of my application

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: URL Serializer removing default namespace

Ryan Puddephatt

Steve,

            I have the namespace in under a prefix as well as the default, but it just removes the default without replacing it with a prefix so rather than being

 

<root xmlns=”http://www.example.org/test” xmlns:ex=”http://www.example.org/test”>

 

It ends up as

 

<root xmlns:ex=”http://www.example.org/test”>

 

Which is wrong.

 

Erik,

            I’m writing using the oxf: protocol

 

Thanks guys

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 


From: Stephen Bayliss [mailto:[hidden email]]
Sent: 12 June 2006 22:15
To: [hidden email]
Subject: RE: [ops-users] URL Serializer removing default namespace

 

Hi Ryan

 

When you say “removing the default namespace”, is it replacing it with a prefixed namespace instead?

 

For instance

replacing <my-root-node xmlns=”http://www.example.org/test”>

with (for example) <ns1:my-root-node xmlns:ns1=http://www.example.org/test>

 

If that’s the case, then it’s not, technically, doing anything wrong as the XML is actually the “same” from an XML processing perspective.

 

Or is it a different issue?

 

Steve

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 12 June 2006 12:10
To: [hidden email]
Subject: [ops-users] URL Serializer removing default namespace

 

Hi all,

            I have noticed that the URL Serializer is removing the default namespace from XML files when saving them. This is causing a problem in my application as I explicitly call the elements using a prefix in another part of my application

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: URL Serializer removing default namespace

Jimmy Royer
I'm facing the same problem. It goes like that..

<_0:root xmlns:ex="http://www.example.org/test">

but the generated _0 isn't defined anywhere.

Jimmy

Ryan Puddephatt wrote:

>
> Steve,
>
> I have the namespace in under a prefix as well as the default, but it
> just removes the default without replacing it with a prefix so rather
> than being
>
> <root xmlns=”http://www.example.org/test” 
> xmlns:ex=”http://www.example.org/test”>
>
> It ends up as
>
> <root xmlns:ex=”http://www.example.org/test”>
>
> Which is wrong.
>
> Erik,
>
> I’m writing using the oxf: protocol
>
> Thanks guys
>
> Ryan
>
> *Ryan Puddephatt*
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7 01506 407 108
>
> ------------------------------------------------------------------------
>
> *From:* Stephen Bayliss [mailto:[hidden email]]
> *Sent:* 12 June 2006 22:15
> *To:* [hidden email]
> *Subject:* RE: [ops-users] URL Serializer removing default namespace
>
> Hi Ryan
>
> When you say “removing the default namespace”, is it replacing it with
> a prefixed namespace instead?
>
> For instance
>
> replacing <my-root-node xmlns=”http://www.example.org/test”>
>
> with (for example) <ns1:my-root-node
> xmlns:ns1=http://www.example.org/test>
>
> If that’s the case, then it’s not, technically, doing anything wrong
> as the XML is actually the “same” from an XML processing perspective.
>
> Or is it a different issue?
>
> Steve
>
> ------------------------------------------------------------------------
>
> *From:* Ryan Puddephatt [mailto:[hidden email]]
> *Sent:* 12 June 2006 12:10
> *To:* [hidden email]
> *Subject:* [ops-users] URL Serializer removing default namespace
>
> Hi all,
>
> I have noticed that the URL Serializer is removing the default
> namespace from XML files when saving them. This is causing a problem
> in my application as I explicitly call the elements using a prefix in
> another part of my application
>
> Thanks
>
> Ryan
>
> *Ryan Puddephatt*
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7 01506 407 108
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: URL Serializer removing default namespace

Ryan Puddephatt
Jimmy,
        Are you getting data from exist by any chance? I know there was a
problem previously on the list about this

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Jimmy Royer [mailto:[hidden email]]
>Sent: 15 June 2006 18:38
>To: [hidden email]
>Subject: Re: [ops-users] URL Serializer removing default namespace
>
>I'm facing the same problem. It goes like that..
>
><_0:root xmlns:ex="http://www.example.org/test">
>
>but the generated _0 isn't defined anywhere.
>
>Jimmy
>
>Ryan Puddephatt wrote:
>>
>> Steve,
>>
>> I have the namespace in under a prefix as well as the default, but it
>> just removes the default without replacing it with a prefix so rather
>> than being
>>
>> <root xmlns="http://www.example.org/test"
>> xmlns:ex="http://www.example.org/test">
>>
>> It ends up as
>>
>> <root xmlns:ex="http://www.example.org/test">
>>
>> Which is wrong.
>>
>> Erik,
>>
>> I'm writing using the oxf: protocol
>>
>> Thanks guys
>>
>> Ryan
>>
>> *Ryan Puddephatt*
>>
>> Software Engineer
>>
>> TFX Group - IT UK
>>
>> 1 Michaelson Square
>>
>> Livingston
>>
>> West Lothian
>>
>> Scotand
>>
>> EH54 7DP
>>
>> * [hidden email]
>>
>> ( 01506 407 110
>>
>> 7 01506 407 108
>>
>> ------------------------------------------------------------------------
>>
>> *From:* Stephen Bayliss [mailto:[hidden email]]
>> *Sent:* 12 June 2006 22:15
>> *To:* [hidden email]
>> *Subject:* RE: [ops-users] URL Serializer removing default namespace
>>
>> Hi Ryan
>>
>> When you say "removing the default namespace", is it replacing it with
>> a prefixed namespace instead?
>>
>> For instance
>>
>> replacing <my-root-node xmlns="http://www.example.org/test">
>>
>> with (for example) <ns1:my-root-node
>> xmlns:ns1=http://www.example.org/test>
>>
>> If that's the case, then it's not, technically, doing anything wrong
>> as the XML is actually the "same" from an XML processing perspective.
>>
>> Or is it a different issue?
>>
>> Steve
>>
>> ------------------------------------------------------------------------
>>
>> *From:* Ryan Puddephatt [mailto:[hidden email]]
>> *Sent:* 12 June 2006 12:10
>> *To:* [hidden email]
>> *Subject:* [ops-users] URL Serializer removing default namespace
>>
>> Hi all,
>>
>> I have noticed that the URL Serializer is removing the default
>> namespace from XML files when saving them. This is causing a problem
>> in my application as I explicitly call the elements using a prefix in
>> another part of my application
>>
>> Thanks
>>
>> Ryan
>>
>> *Ryan Puddephatt*
>>
>> Software Engineer
>>
>> TFX Group - IT UK
>>
>> 1 Michaelson Square
>>
>> Livingston
>>
>> West Lothian
>>
>> Scotand
>>
>> EH54 7DP
>>
>> * [hidden email]
>>
>> ( 01506 407 110
>>
>> 7 01506 407 108
>>
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: URL Serializer removing default namespace

Jimmy Royer
Hi Ryan,

Yes I can retrieve documents with eXist, and even with the stable
release, but I will
pick the latest snapshot having read here there would be some issues
with the stable
one. I have no problem now getting my documents with the appropriate
namespace.

Hope that helps!
Jimmy


Ryan Puddephatt wrote:

> Jimmy,
> Are you getting data from exist by any chance? I know there was a
> problem previously on the list about this
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>  
>> -----Original Message-----
>> From: Jimmy Royer [mailto:[hidden email]]
>> Sent: 15 June 2006 18:38
>> To: [hidden email]
>> Subject: Re: [ops-users] URL Serializer removing default namespace
>>
>> I'm facing the same problem. It goes like that..
>>
>> <_0:root xmlns:ex="http://www.example.org/test">
>>
>> but the generated _0 isn't defined anywhere.
>>
>> Jimmy
>>
>> Ryan Puddephatt wrote:
>>    
>>> Steve,
>>>
>>> I have the namespace in under a prefix as well as the default, but it
>>> just removes the default without replacing it with a prefix so rather
>>> than being
>>>
>>> <root xmlns="http://www.example.org/test"
>>> xmlns:ex="http://www.example.org/test">
>>>
>>> It ends up as
>>>
>>> <root xmlns:ex="http://www.example.org/test">
>>>
>>> Which is wrong.
>>>
>>> Erik,
>>>
>>> I'm writing using the oxf: protocol
>>>
>>> Thanks guys
>>>
>>> Ryan
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7 01506 407 108
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *From:* Stephen Bayliss [mailto:[hidden email]]
>>> *Sent:* 12 June 2006 22:15
>>> *To:* [hidden email]
>>> *Subject:* RE: [ops-users] URL Serializer removing default namespace
>>>
>>> Hi Ryan
>>>
>>> When you say "removing the default namespace", is it replacing it with
>>> a prefixed namespace instead?
>>>
>>> For instance
>>>
>>> replacing <my-root-node xmlns="http://www.example.org/test">
>>>
>>> with (for example) <ns1:my-root-node
>>> xmlns:ns1=http://www.example.org/test>
>>>
>>> If that's the case, then it's not, technically, doing anything wrong
>>> as the XML is actually the "same" from an XML processing perspective.
>>>
>>> Or is it a different issue?
>>>
>>> Steve
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *From:* Ryan Puddephatt [mailto:[hidden email]]
>>> *Sent:* 12 June 2006 12:10
>>> *To:* [hidden email]
>>> *Subject:* [ops-users] URL Serializer removing default namespace
>>>
>>> Hi all,
>>>
>>> I have noticed that the URL Serializer is removing the default
>>> namespace from XML files when saving them. This is causing a problem
>>> in my application as I explicitly call the elements using a prefix in
>>> another part of my application
>>>
>>> Thanks
>>>
>>> Ryan
>>>
>>> *Ryan Puddephatt*
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7 01506 407 108
>>>
>>>      



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws