At 14.12 19/07/2007 -0700, jerome.mariette wrote:

Hi everybody,
I'm writing an XML file that I creat from scratch in my code, then check it
with my xml schema to be sure it's ok. The problem is it still complaining
and say it's wrong ... I figured out it's because when I'm writing my XML
with my DOMWriter, this one forget to add ths xsi domain.
so instead of
  <EventDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

it writes that:
<EventDataSet xmlns="http://www.w3.org/2001/XMLSchema-instance";>

so I guess xmlns is then anderstood as an attribut !!
how can I say to xerces to write it ... as this is automatic when I creat
the xML.

Hi Jerome,
DOMWriter writes what you created... either you added an attribute named "xmlns" instead of "xmlns:xsi", or you created the EventDataSet element with a namespace of http://www.w3.org/2001/XMLSchema-instance. But in order to tell you what was wrong, we need to see the code that creates the DOM tree.

Alberto

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to