Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: crult
  • Order by date
  1. crult

    Parsing XML with XSLT

    Thanks! I'll give it a try. Best regards
  2. crult

    Parsing XML with XSLT

    I'm going to use your code with XSLT. I asked you if there's an instruction to search all the xml files contained in that folder at once. How XSLT 'understands' that the following instruction will be executed for all these files in a specific folder: <xsl:template match="Texte">...
  3. crult

    Parsing XML with XSLT

    Ok, so you think that is better to process directly the folder that contains the xml files. Is there a XSLT instruction that allows to search and process all the contents of that folder? Thanks
  4. crult

    Parsing XML with XSLT

    This is a sample of the txt file, where you can see only two of the xml documents. Normally this list continues with a third, fourth etc...(over 6.000 xml documents in total). Thank you
  5. crult

    Parsing XML with XSLT

    Hello, I have a folder containing a large number of .xml files. Alternatively, i have also a .txt file that contains all these .xml like text. These documents come from newspaper's articles in xml format. There's is a sample: <?xml version="1.0" encoding="UTF-8"?> <Document...
  6. crult

    Handle xml files with perl

    Thanks, that's it! Now it works, but only with the code to export one only txt file with the content of all xml's: use XML::Twig; my $xml_dir = 'C:\xmlperl'; my $cnt = 0; my $out; opendir(DIR,$xml_dir) || die; my @TranscriptsList = grep(/xml$/, readdir(DIR)); closedir(DIR); foreach...
  7. crult

    Handle xml files with perl

    cannot find string terminator ' '' ' (something like that) anywhere before EOF at line 21 ($file = $xml_dir."\".$file;)
  8. crult

    Handle xml files with perl

    Yes. In the editor after this line $file = $xml_dir."\".$file; the code colour changes to gray, like something is going wrong, why?
  9. crult

    Handle xml files with perl

    Problem again...no such file or directory.
  10. crult

    Handle xml files with perl

    Sorry, i meant: Also i tried both $twig->print; and $twig->print($file);
  11. crult

    Handle xml files with perl

    Hi, i've change $xml_dir to $file but i gives always the same error... use XML::Twig; my $file = 'C:\xmlperl'; my $cnt = 0; my $out; opendir(DIR,$file) || die; my @TranscriptsList = grep(/xml$/, readdir(DIR)); closedir(DIR); foreach $file (@TranscriptsList) { my $twig= new...
  12. crult

    Handle xml files with perl

    Hello, thank you for the help. Now i tested my code like this: use XML::Twig; my $xml_dir = 'C:\xmlperl'; my $cnt = 0; my $out; opendir(DIR,$xml_dir) || die; my @TranscriptsList = grep(/xml$/, readdir(DIR)); closedir(DIR); foreach $file (@TranscriptsList) { my $twig= new...
  13. crult

    Handle xml files with perl

    Hello, I have a large number of xml files in a folder. I want to read and extract the content of each xml file to a new.txt. I'm only interested in the content having the tag <Texte>, and i want to create a .txt file (a texte file for each of my xml's). I use the perl modules xml twig and xml...

Part and Inventory Search

Back
Top