Skip to content
Advertisement

Retrieve OuterXML From XML Child Node

I need to retrieve the OuterXML for each speak tag.

For example, I need to retrieve this data for the first speak tag in test.ssml:

JavaScript

index.php

JavaScript

test.ssml

all tracks.mp3 bookmarks.dat Test 1 Test 2

Current Output in Browser

Current Output Image

Desired Output

Desired Output Image

Advertisement

Answer

You can get the XML directly using the SimpleXML function asXML() and don’t need (as far as I can tell) the XMLReader

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement