users@jaxb.java.net

marshalling

From: Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>
Date: Thu, 25 Jun 2009 07:51:08 +0200

Hi
 
 When marshalling an xml document I get the following xml document:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cr:ruleset xmlns:cr="urn:ietf:params:xml:ns:common-policy">
    <cr:rule id="my-rule-one">
        <cr:transformations>
            <pr:sub-handling
xmlns:pr="urn:ietf:params:xml:ns:pres-rules">block</pr:sub-handling>
        </cr:transformations>
    </cr:rule>

    <cr:rule id="my-rule-two">
        <cr:transformations>
            <pr:provide-time-offset
xmlns:pr="urn:ietf:params:xml:ns:pres-rules">true</pr:provide-time-offse
t>
        </cr:transformations>
    </cr:rule>
</cr:ruleset>

 

1. How can I get ride of standalone="yes"?
2. How can I put the name space declaration
xmlns:pr="urn:ietf:params:xml:ns:pres-rules" on top like the
xmlns:cr="urn:ietf:params:xml:ns:common-policy declaration is?

Thanks as always.

Lulseged