Parsing through an XML doucment
Hey Guys I have been reading online on ways to parse through an XML document with jQuery, and came up with examples to parse through it using ajax.
If that is the case, then when would I be needing to use $.parseXML??
As an example lets say i want to get the text of the element <name> and display it as an alert..
Do I use the regular selector $(name) and then use the $.parseXML or do I put the XML as a separate file and parse it with ajax?
Just a little bit confused over there. Thanks!
- <BusinessCard>
- <name>Eldan</name>
- </BusinessCard>