You might consider using a custom NoteFilter with a TreeWalker (both in
org.w3c.dom.traversal) to achieve this.
--> thanks for the tip.. I will show it.
Converting namespace prefixes is something I've had trouble with in the
past, and, frankly, I'm surprised that this sort of operation isn't
Stéphane Rault wrote:
Thank you for your sharp answer...
I will implements the first method I think.
Stéphane.
-Message d'origine-
De : Nathan Beyer [mailto:[EMAIL PROTECTED]
Envoyé : mardi 22 février 2005 03:09
À : [EMAIL PROTECTED]
Objet : RE: Serialisation with no default name
Thank you for your sharp answer...
I will implements the first method I think.
Stéphane.
-Message d'origine-
De : Nathan Beyer [mailto:[EMAIL PROTECTED]
Envoyé : mardi 22 février 2005 03:09
À : [EMAIL PROTECTED]
Objet : RE: Serialisation with no default namespace prefix
I
hen just load this up as a stylesheet with
the transformer APIs and just apply it to any document.
These may not be the most efficient approaches, but they might work for you.
-Nathan
-Original Message-
From: Stéphane Rault [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 9:00 AM
Do you have a snippet of the code that constructs the elements? I believe
you just need to create the namespace attribute declaration correctly. In
your example you have 'xmlns:ced="namespace"', but what you want is
'xmlns="namespace"', but that could just be a typo.
Ymailto:[EMAIL PROTECTED]
S
Do you have a snippet of the code that constructs the elements? I believe
you just need to create the namespace attribute declaration correctly. In
your example you have 'xmlns:ced="namespace"', but what you want is
'xmlns="namespace"', but that could just be a typo.
-Original Message-
Fr