Thanks for prompt reply!
> > Everything works nice, except that XHTML namespace is set as default > > namespace, so no prefixes, preferably 'html' prefix, is not included in > > element names when > serialized back to string. > > I'm getting: > > > > some <b> bold </b> text > > > > But I need: > > > > <html:body> some <html:b> bold </html:b> text </html:body> > > > > [...] > > I don't understand your problem. Both versions are equivalent. Right, the are equivalent. But then I have to pick the content of body tag, already serialized, using substring operation, and insert it to generated JSP (RSS/Atom feed). And because of the substring, the namespace declaration gone, so I need the prefix to be present for each element. Note: xhtml namespace is declared at the top of the JSP, so the fragment fit in well. > Even if you > don't compose your final RSS/Atom document using DOM or similar, it's a JSP and Struts application, small part of bigger structure. > but > pasting the generated XML string into another one (which you shouldn't do > IMHO), right, should not! but it would involve large redesign of existing parts. I event cannot imagine how. I have to stick with string field for a while. > .. > In the first version, the default namespace > is set to the XHTML namespace. It therefore also applies to the and > <b> elements. Yes, I suppose it's applied right. But as a default namespace, ie. prefix=null. That what I don't want. Is it always necessary for default namespaces to have prefix=null? Is it kind of a w3c rule? Regards, Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
