Отредактировано: Я проверяю файлы X HTML. Поэтому я использую приведенный ниже код для разбора файла x html (особенно из этого файла jar, не разбирающего модули) :
Вывод, напечатанный в приглашении MS-Dos, выглядит следующим образом:
"file:009_chapter004_9783990309544.xhtml":830.1-830.5: info warning: A table row was 1 columns wide, which is less than the column count established by the first row (2).
"file:009_chapter004_9783990309544.xhtml":833.1-833.5: info warning: A table row was 1 columns wide, which is less than the column count established by the first row (2).
"file:009_chapter004_9783990309544.xhtml":836.1-836.5: info warning: A table row was 1 columns wide, which is less than the column count established by the first row (2).
"file:009_chapter004_9783990309544.xhtml":839.1-839.5: info warning: A table row was 1 columns wide, which is less than the column count established by the first row (2).
"file:009_chapter004_9783990309544.xhtml":842.1-842.5: info warning: A table row was 1 columns wide, which is less than the column count established by the first row (2).
"file:009_chapter004_9783990309544.xhtml":845.1-845.5: info warning: A table row was 1 columns wide, which is less than the column count established by the first row (2).
"file:009_chapter004_9783990309544.xhtml":826.1-826.33: error: Table column 2 established by element ΓÇ£tdΓÇ¥ has no cells beginning in it.
В perl скрипте, как преобразовать MS-Dos output
в *.txt
файл с помощью следующей команды:
#Try - 1
system("java -Xss512k -jar \"c:/vnu.jar_18.11.5/dist/vnu.jar\" 009_chapter004_8883990309533.xhtml >Output.txt");
#Try - 2
my $output = system("java -Xss512k -jar \"c:/vnu.jar_18.11.5/dist/vnu.jar\" 009_chapter004_8883990309533.xhtml");
#Try - 3
perl -w htmlvalidation.pl >Output.txt;
Однако в приведенном выше коде нет успеха. Может ли кто-нибудь помочь мне в этом.