Hi there,
i got a bunch of XML files an just want to parse Them for a special trigger to load
the Data after that trigger in a variable and later in my MySQL Database.
I try like that:
snip ++++++++++++++++++++++++++++++++++++++++++++++++++++
#looking for Trigger <testsystem>
if (/<testsystem>\s/ .. /<\/testsystem>\s/)
{
if ( /^(.*)\s+/) {
$testsystem = $1;
chomp ($testsystem);
}
print "Testsystem: $testsystem";
}
snip ++++++++++++++++++++++++++++++++++++++
The XML piece looks like this:
<testsystem>
Tester3
</testsystem>
And i want to store the "Tester3" Part.
But my Script prints the whole Block:
Testsystem: <testsystem>
Testsystem: Tester3
Testsystem: </testsystem>
Anyone could help?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]