<!DOCTYPE doc[ <!ELEMENT doc (title, author, (info|div)*)> <!ELEMENT title (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ATTLIST doc title CDATA #REQUIRED> <!ATTLIST doc author CDATA #REQUIRED> <!ELEMENT div (title,(section|p|info)*)> <!ATTLIST div title CDATA #REQUIRED> <!ELEMENT p (#PCDATA|r|gaiji)*> <!ELEMENT section (#PCDATA)> <!ELEMENT info EMPTY> <!ATTLIST info text CDATA #REQUIRED> <!ELEMENT r (#PCDATA|gaiji)*> <!ATTLIST r rt CDATA #REQUIRED> <!ELEMENT gaiji (#PCDATA)> <!ATTLIST gaiji text CDATA #REQUIRED> ]>
エディタに検索結果の列を貼り付けて置換で整形
.+# → #.+ →
-.+ →