RE: Unqualified elment - but still have prefix at the root

> 
> i have two schemas A,B. 
> B import A. 

Actually, you have one schema made up from two schema documents.

> Both of them defined as unqualified element, but the xml that 
> generated from B has n1: as a prefix for the root elements. 
> Is there a way to have no prefix at all? 
> 

Are you saying (a) you don't want the elements to be in a namespace, or are
you saying (b) you want them to be in a namespace, but you want that to be
the default namespace (so it needs no prefix)?

If you want (a) then you'll have to change your schema. Without seeing the
schema, it's hard to say how.

If you want (b), then this depends on the tool that you are using to
generate instances from your schema. You haven't told us what tool you are
using.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Received on Tuesday, 25 August 2009 10:02:21 UTC