こんにちは、私は私が好きなフォルダが「スライド」と呼ばれ、私はそれで複数のテキスト/ htmlファイルを持っていな状況で助けを求めていました解析複数のHTML /テキストファイルは
<h2>Title of the Slide</h2>
<p><a href="http://mydomain.com"><img src="tick_icon.jpg" width="227" height="227" alt="icon" longdesc="http://longdescription" /></a></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
3プロパティタイトル、画像・説明:というように.....これらのファイルの
構造は次のようです。各行に1つ。
私はこのような10-12のファイルを持っています。私はループして、'slides'
と呼ばれるフォルダ内のこれらのファイルをすべて解析し、(3行の)各行の値を変数として返してレイアウトのためにコード内に配置できるようにする機能が必要でした。
あなたの質問は何ですか? –
HTMLをどのように処理したいのか、もう少し具体的にお考えですか?特に、私はあなたが "各行の価値"によって何を意味するのかよく分かりません。また、これを書き込むための優先言語がありますか? – Karmastan