in reply to How do I capture XML into a variable?
I'll go out on a limb at assume that because you mentioned opening a file, you want the XML feed as one line per element in the array. That will probably make it somewhat difficult to parse, though. However, assuming you already have the XML in a scalar, you can use split to split it up on newlines ("\n").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I capture XML into a variable?
by tubes41 (Initiate) on Apr 19, 2005 at 01:50 UTC | |
|
Re^2: How do I capture XML into a variable?
by tubes41 (Initiate) on Apr 19, 2005 at 01:29 UTC | |
by friedo (Prior) on Apr 19, 2005 at 01:41 UTC | |
by tubes41 (Initiate) on Apr 19, 2005 at 01:48 UTC | |
by Tanktalus (Canon) on Apr 19, 2005 at 03:05 UTC | |
by mirod (Canon) on Apr 19, 2005 at 08:20 UTC | |
by graff (Chancellor) on Apr 19, 2005 at 01:48 UTC |