I like to set prefix for attribute while creating `XML` file using `Java`.
The result that I needed is 

```
<entry gd:etag="*">
    <id>Text</id>
</entry>

```

But I'm getting

```
<entry etag="*">
    <id>Text</id>
</entry>

```

The code that I have written is 

```
DocumentBuilderFactory docBuildFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuildFactory.newDocumentBuilder();
Document doc = docBuilder.newDocument();
Element entry = doc.createElement("entry");
entry.setAttribute("etag","*");
doc.appendChild(entry);
Element id = doc.createElement("id");
id.setTextContent("Text");
entry.appendChild(id);
.....

```

I have no idea how to set prefix for the attributes. Can someone suggest me how to do this?