All pastes #14149 Raw Edit

Zhila

public text v1 · immutable
#14149 ·published 2005-06-12 20:19 UTC
rendered paste body
Example XML File:

<verbs>
    <element>
        <a>play</a>
        <b>work</b>
        <c>write</c>
    </element>
    <element>
        <a>hear</a>
        <b>see</b>
        <c>smell</c>
    </element>
    <element>
        <a>punch</a>
        <b>hit</b>
        <c>hurt</c>
    </element>
</verbs>



Example struct definition:

struct Verbs {
    public string A, B, C;

    public Verbs(string a, string b, string c) {
        A = a; B = b; C = c;
    }
}



This is basically what I want as a result:

Verbs verbsArray[] = { new Verbs("play", "work", "write"),
                       new Verbs("hear", "see", "smell"),
                       new Verbs("punch", "hit", "hurt") };