Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Character "c" is gramatically incorrect

Status
Not open for further replies.
Sep 10, 2009
37
US
I am testing my XML code in AltovaXMLSpy:

<c><CandidateID>655464</CandidateID><cd><ProjectNumber>VendorManagement</ProjectNumber><cc><ProjectSubnumber>8856</ProjectSubnumber><AreaID></AreaID><oc><PayRate>22.0000</PayRate><StartDate>2008-04-04T00:00:00</StartDate><EndDate>2010-08-04T00:00:00</EndDate><PlacementID>263251</PlacementID></oc></cc></cd></c>
<c><CandidateID>65123</CandidateID><cd><ProjectNumber>Management</ProjectNumber><cc><ProjectSubnumber>765</ProjectSubnumber><AreaID></AreaID><oc><PayRate>14.0000</PayRate><StartDate>2008-04-04T00:00:00</StartDate><EndDate>2010-08-04T00:00:00</EndDate><PlacementID>263251</PlacementID></oc></cc></cd></c>

I am getting the below error:

Character 'c' is grammatically unexpected and it is highlighting the 2nd <c> (<c><CandidateID>65123</CandidateID)

Any help or solution is greatly appreciated!!
 
A well formed XML needs a tag that encloses the whole document, ie, a one-and-only level-one tag. You have two <c>s

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top