Question: I want to parse the value pattern from servers.xml using linux command.

condition 

1. the variable pattern must be valid meaning it should not be inside comments

```
<!--- comments  -->

```
2. if the variable is inside comments,parser should not return anything.

PFB the xml

```
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %t %m %U %q %s %b %D %{X-Forwarded-For}i " />

```

Answer: 
```
Try this:
insert into hall_booking (name,address,event_type,hallNo,arrival_time,arrival_date,dep_time,dep_date,identity,emailid,contact,total_members,desc,catering,service,decoration,other)
values ( '".$nm."','".$add."','".$typ."','".$roomno."','".$arrv."','".$arrivaldate."','".$departure."','".$dDate."','".$idt."','".$emailid."','".$cont."','".$desc."','200','200','200','200')"

```
You have a field which is a reserved word... desc.

Try to enclosed it with '`' character so it should be `desc`.

```
mysql> 
insert into hall_booking
(name,address,event_type,hallNo,arrival_time,
arrival_date,dep_time,dep_date,identity,emailid,contact,total_members,
`desc`,catering,service,decoration,other) values
('$nm','$add','$typ','$roomno','$arrv','$arrivaldate','$departure','$dDate',
 '$idt','$emailid','$cont','$desc','200','200','200','200')

```