Sorry that should be:
Main Topics
Browse All TopicsHi guys and thanks for looking,
I have a new project where fixed text can be accessed by either AJAX or a .NET page. I decided to place the text in an XML file to avoid duplication.
Initially I used an int ID and a method "GetErrorMessageById" to retrieve the item of text. This works fine and both the call and the method are shown in the code snippet.
then I decided to use a string value instead using the method GetErrorMessageByFieldId which is alos illustrated below. This is the one I am having an issue with as it wont return any nodes when called.
Please cna some one let me know what i'm doing wrong here and suggest a fix or a work around.
All code and XML below.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Dont you just hate it when it turns out to be something sooooo obvious!
Thanks for the help. the reason
return xmlErrorMessages.DocumentE
And
return xmlErrorMessages.DocumentE
Dint was because id is an int and does not need single quotes. How ever when using a string then we need to enclose it.
[fieldid='' strFeidlID]
Cheers!
Business Accounts
Answer for Membership
by: existenz2Posted on 2008-01-15 at 04:53:10ID: 20662025
The following XPath query will return node which holds value '1'. You will need the parent node from that to get the corresponding message node.
Select allOpen in new window