You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Timo Ahokas <ti...@voxsurf.com> on 2004/11/25 19:33:18 UTC

Correct way of adding namespace/schema attributes

Hi,

I would like to add the following attributes to the top level XML element I'm generating based 
on a schema:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.domain.com/test test.xsd"

I tried adding these using a cursor.insertAttributeWithValue() on the top level element, but 
the validation on the names failed. What would be the correct way to do this?

Many thanks,
Timo Ahokas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org