You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Emmanouil Batsis <ma...@geekologue.com> on 2005/03/26 14:29:00 UTC
XMLSerializer outputs unqualified attributes?
When using org.apache.xml.serialize.XMLSerializer, attributes come out
unqualified (no namespace prefix) when their parent element belongs to the
same namespace. The parent element however, does come out qualified.
This is probably a config issue, hope someone can point out what i'm missing?
Thanks,
Manos
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: XMLSerializer outputs unqualified attributes?
Posted by Emmanouil Batsis <Em...@eurodyn.com>.
Emmanouil Batsis wrote:
>When using org.apache.xml.serialize.XMLSerializer, attributes come out
>unqualified (no namespace prefix) when their parent element belongs to the
>same namespace. The parent element however, does come out qualified.
>
>
It works correctly if i specify the qname (before i was only providing
NS URIs and local names, as with all events in my code). Is this how it
should be done? I'd like to avoid providing qnames even in attributes. I
should also add that:
* there is no parser in the mix, i just create events programmatically
* the prefix mapping events are created correctly by my code
* the XMLSerializer is configured with namespaces=true
* i use org.xml.sax.AttibutesImpl to create attributes
Thanks,
Manos
>This is probably a config issue, hope someone can point out what i'm missing?
>
>Thanks,
>
>Manos
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org