Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
218 views
in Technique[技术] by (71.8m points)

python - HTML表格到XML(HTML table to XML)

I'm trying to take the feat tables from https://swse.fandom.com/wiki/Feats and get them into this XML format having the <id-00069> increase with each entry.

(我正在尝试从https://swse.fandom.com/wiki/Feats中获取功能表,并将其转换为XML格式,并使每个条目的<id-00069>增加。)

Anyone able to point me in the right direction?

(有人能指出我正确的方向吗?)

    <id-00069>
            <benefit type="formattedtext">
                <p>Ignore -5 penalty on attack rolls with weapons of a particular type.</p>
            </benefit>
            <locked type="number">1</locked>
            <name type="string">Weapon Proficiency</name>
            <normal type="formattedtext">
                <p></p>
            </normal>
            <prerequisites type="string"></prerequisites>
            <special type="formattedtext">
                <p></p>
            </special>
            <type type="string">Feat</type>
        </id-00069>
        <id-00070>
            <benefit type="formattedtext">
                <p>Make one melee attack against each opponent within reach.</p>
            </benefit>
            <locked type="number">1</locked>
            <name type="string">Whirlwind Attack</name>
            <normal type="formattedtext">
                <p></p>
            </normal>
            <prerequisites type="string">Dexterity 13, Intelligence 13, Melee Defense, Base Attack Bonus +4</prerequisites>
            <special type="formattedtext">
                <p></p>
            </special>
            <type type="string">Feat</type>
        </id-00070>
  ask by Daniel Frost translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...