You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Edward Slattery <ed...@googlemail.com> on 2006/04/20 14:31:17 UTC
buffer ==> Axiom ==> buffer question
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>
*