On Thursday 28 October 2004 10:56, E.Horn wrote:

Good morning,

> this gives me a DTD as output.

DTD?
As in the kind of document that describes XML files?
If yes, an XML Parser might be the wrong tool for parsing this kind of file.
Could you give us an example?

> My problem is I want to parse this output!
> But how can ich give it to the second code that this parses the result
> of (sub_daten_einlesen)
> I hope someone understands my question ;-)

[..snipped some code...]
>
>
> $url1 =daten_einlesen();
> $doc = get $url1;
> print $doc;

>
> #!/xprog/bin/perl
>
>                         # use module
>                         use XML::Simple;
>                         use Data::Dumper;
>
>                         # create object
>                         $xml = new XML::Simple;
>
>                         # read XML file
>                         $data = $xml->XMLin("which path???");

If the output you want to parse is stored in $doc, you should be able to pass 
it directly to XML::Simple:

  my $data = $xml->XMLin($doc);

HTH,

Philipp

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to