axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Slattery" <edslatt...@googlemail.com>
Subject buffer ==> Axiom ==> buffer question
Date Thu, 20 Apr 2006 12:31:17 GMT
I have an XML buffer, which I load using the axis2_xml_reader_for_buffer,
then write out the axiom object model. When I write out, I get a very
slightly different result from the buffer which I read in. The property
"name" has been mutated into "xsi:name" - is this my XML at fault, or the
axiom reader?

I read in:

*<Company xmlns="myspace"
 xsi:type="Company"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:tns="myspace"
 name="The VDB Company Inc">

 <departments name="Billing">
  <employees name="Albert"/>
  <employees name="Ben"/>
 </departments>

 <departments>
  <employees name="Cyril"/>
  <employees name="Dominic"/>
 </departments>
</Company>

When written out, the "name" has changed to an "xsi:name" - any ideas why?

<Company xmlns="myspace"
 xsi:name="The VDB Company Inc"
 xsi:type="Company"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:tns="myspace">

 <departments name="Billing">
  <employees name="Albert">
  </employees>
  <employees name="Ben">
  </employees>
 </departments>

 <departments>
  <employees name="Cyril">
  </employees>
  <employees name="Dominic">
  </employees>
 </departments>

</Company>
*

Mime
View raw message