'How can we avoid namespaces from string elements with attributes in Jackson

I was wondering if someone could give little bit of help. I have the blow code in Java and want the output xml without namespaces you see below.

  @JacksonXmlProperty(localName = "abc:userId",namespace = "userIdScheme=http://www.example.com/userlist/xys/ticket",isAttribute = false)
     private String userId;
    
      public String getUserId() {
        return userId;
      }
    
      public void setUserId(String userId) {
        this.userId = userId;
      }

When serializing, I get the below xml with name spaces :-

 <wstxns1:abc:userId xmlns:wstxns1="userIdScheme=http://www.example.com/userlist/xys/ticket">U001</wstxns1:abc:userId >

But, what I would need is this (without those name spaces) :-

 <abc:userId userIdScheme="http://www.example.com/userlist/xys/ticket">U001<abc:userId >


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source