Read XML within Textarea with Jquery

0

Good afternoon.

I have a normal HTML page and inside it I have a textearea with an XML of the same page.

As you can see in the image below the XML is inside a textearea. I need to read and use his data with Jquery or JS.

My url looks like this link

Can Jquery's Load help me? What would be a better alternative to read and use the data in this textarea?

I have already searched for everything, in several languages and I could not. If you know a tutorial, or something worth stopping the link.

    
asked by anonymous 29.03.2016 / 21:12

1 answer

2

I imagine it looks like this:

Source: link

var xml = $('textAreaSelector').val(),
  xmlDoc = $.parseXML( xml ),
  $xml = $( xmlDoc ),
  $imagem = $xml.find( "imagem" );
    
29.03.2016 / 21:26