If I get the following response back from $.get(..., 'xml'), jQuery is
unable to recognize address as an attribute.

<?xml version="1.0" encoding="UTF-8"?>\n
<device address="http://192.168.1.100"/>

NOTE: The '\n' are actual line feeds not, the characters \ and n. I
just want to show them for emphasis since removing it in the above
scenario allows it to work.

If the line feed character is removed so that it is all on one line,
then it works fine. If device is split up like

<?xml version="1.0" encoding="UTF-8"?>\n
<device>\n
  <url address="http://192.168.1.100"/>\n
</device>

then everything parses fine.

Reply via email to