Hi,
I am using Coldfusion to query an xml doc.
I want to be able to find an errormessage associated with a attribute ID associated with the error message.
At the moment I am using the xpath expression of /Errors/Error/ and then looping over all of the error messages that come back, and comparing the attribute with what i am looking for, but this just seems inefficient.
this is my xml structure:
Code:
<Errors>
<Error>
<ErrorMessage ID="1">
<En>My Message</En>
<Fr>My Message Fr</Fr>
</ErrorMessage>
</Error>
</Errors>
I want to be able to return the specific error message block for the ID supplied.
Any ideas?
TIA
Tony