Can anyone explain why the variable objProperties, which contains an xpath with a wildcard, is coming up empty in this scenario?
function getXMLServerObject (httpType, cmd, isAsync) {
var object = new Array();
$.ajax({
type: httpType,
url: cmd,
async: isAsync,
dataType: "xml",
success: function (xml) {
var error = $(xml).find("Error");
if (error == null) {
object["__error"] = error.text();
return object;
}
var objProperties = $(xml).find("Data\\Record\\*");
This results in an empty array for xml:
...
<Data>
<Record>
<MailFrequency>30</MailFrequency>
<Tracking>-1</Tracking>
</Record>
</Data>
However, searching for individual nodes returns the expected results.