I have an XML file that uses image tags like this:
<Entry>
<?image_0 href="http://url.com"?>
<?image_1 href="http://url.com"?>
<?image_2 href="http://url.com"?>
</Entry>
It doesn’t work using .find(“?image_0”) or similar since this has no closing tag. This format is supported by Adobe InDesign, but how do I get the image child elements and the URL?
You can make it valid xml by rewriting the content:
Here’s a fiddle.