Here's an example XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<catalog>
<cd>
    <title>Empire Burlesque</title>
    <artist>Bob Dylan</artist>
    <country>USA</country>
    <company>Columbia</company>
    <price>10.90</price>
    <year>1985</year>
</cd>
<cd>
    <title>Robbin in the Hood</title>
            <artist>Bradley Noel</artist>
    <artist>Gwen Stephany</artist>
    <country>USA</country>
    <company>Sublime</company>
    <price>Priceless</price>
    <year>1994</year>
</cd>
</catalog>

If I have some entries with multiple entries (for example, Artist: Bradley Noel, Gwen Stephany), how can I list them as two separate artists in my output? Should I nest a separate 'foreach' for records that may contain multiple values in a field type?

What I am actually having difficulty with is discovering a way to say "these artists belong to the same album".

link|improve this question

78% accept rate
I'm trying to target siblings? – Wolfpack'08 Jul 19 '11 at 15:46
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.