Question: I have a sample.xml which looks like this

`<?xml version="1.0" ?>
 <Employee>
 <Name>ABC</Name> 
 <EmpId>100011</EmpId> 
 <Occupation>Programmer</Occupation> 
 <Company>XYZ</Company> 
 </Employee>`
`
 and the code to parse it is 

```
def display = {
        def parser = new XmlParser()
        def doc = parser.parse("grails-app/conf/sample.xml")
        def map =  [data: doc]
        render (view:'/myxml',model:map) }

```

When I run this app I get the output as shown on myxml.gsp

`Employee[attributes={}; value=[Name[attributes={}; value=[ABC]], EmpId[attributes={}; 
value=[100011]], Occupation[attributes={}; value=[Programmer]],Company[attributes={}; 
value=[XYZ]]]]`

Is there any way I can get it in the format as shown

```
<Employee>
<Name>ABC</Name>
<EmpId><100011</EmpId>
<Occupation>Programmer</Occupation>
<Company>XYZ</Company>
</Employee>

```

?

Answer: 
you can use asp text boxes fine if you grab a reference in your javascript to their asp.net generated ID via <%= textboxname.ClientId %>
If I understand you correctly. You just need to add runat="server" and id="someName" to the html fields and access them in the code behind by its given id.