Hello,
I have a DOM which serializes to the following XML. As you see, the
namespace prefixed with "f" is repeated for each object. Is there a way
in Xerces-J to make an unique definition of the prefix in the top-level
element (so as to save room)?
Thanks for answers
Phil
<?xml version="1.0" encoding="UTF-8"?>
<e:test xmlns:e="http://www.example.com/e">
<f:value xmlns:f="http://www.example.com/f">
<f:val>12</f:val>
<f:unit>lux</f:unit>
</f:value>
<f:value xmlns:f="http://www.example.com/f">
<f:val>34.123 4</f:val>
<f:unit>amper e</f:unit>
</f:value>
<f:value xmlns:f="http://www.example.com/f">
<f:val>45.0</f:val>
<f:unit>empty_k ey</f:unit>
</f:value>
</e:test>
I have a DOM which serializes to the following XML. As you see, the
namespace prefixed with "f" is repeated for each object. Is there a way
in Xerces-J to make an unique definition of the prefix in the top-level
element (so as to save room)?
Thanks for answers
Phil
<?xml version="1.0" encoding="UTF-8"?>
<e:test xmlns:e="http://www.example.com/e">
<f:value xmlns:f="http://www.example.com/f">
<f:val>12</f:val>
<f:unit>lux</f:unit>
</f:value>
<f:value xmlns:f="http://www.example.com/f">
<f:val>34.123 4</f:val>
<f:unit>amper e</f:unit>
</f:value>
<f:value xmlns:f="http://www.example.com/f">
<f:val>45.0</f:val>
<f:unit>empty_k ey</f:unit>
</f:value>
</e:test>
Comment