# Escaping XML "queries"

**URL:** <https://forum.kirupa.com/t/escaping-xml-queries/240999>\
**Category:** Uncategorized\
**Created:** [October 9, 2007, 10:28am UTC](https://forum.kirupa.com/t/escaping-xml-queries/240999 "2007-10-09T10:28:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benh](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@benh](https://forum.kirupa.com/u/benh)\
**Post date:** [October 9, 2007, 10:28am UTC](https://forum.kirupa.com/t/escaping-xml-queries/240999/1 "2007-10-09T10:28:49Z")

</div>

Hi there,

I’m stuck on an XML query because the XML uses the reserved word “for” in it’s namespace;

The tricky bit of the XML looks like this;

```auto
  
<AwayRecord win="3" draw="1" lost="1" for="11" against="7" /> 
 
  <HomeRecord win="4" draw="0" lost="1" for="10" against="3" /> 
 

```

This works

```auto
sFHomeFor = H2HData.ClubRecord*.SeasonRecord.ResultsBreakdown.AwayRecord.@against

```

but this

```auto
 
sFHomeFor = H2HData.ClubRecord*.SeasonRecord.ResultsBreakdown.AwayRecord.@for

```

causes a compile error;  
“1084: Syntax error: expecting identifier before for.”

Any ideas? This one’s got me stumped…

Cheers

Ben
