对于通过标签汤转换为html
的混乱xhtml
,是否reasonable是从xsd
构建trang
进行解组然后解析的全部? / p>
thufir@dur:~/xml/xhtml$
thufir@dur:~/xml/xhtml$ trang output.xhtml output.xsd
fatal: unrecognized input type "xhtml"
thufir@dur:~/xml/xhtml$
thufir@dur:~/xml/xhtml$ mv output.xhtml output.xml
thufir@dur:~/xml/xhtml$
thufir@dur:~/xml/xhtml$ trang output.xml output.xsd
thufir@dur:~/xml/xhtml$
thufir@dur:~/xml/xhtml$ xjc output.xsd
parsing a schema...
compiling a schema...
org/w3/_1999/xhtml/A.java
org/w3/_1999/xhtml/Article.java
org/w3/_1999/xhtml/Aside.java
org/w3/_1999/xhtml/Body.java
org/w3/_1999/xhtml/Button.java
org/w3/_1999/xhtml/Div.java
org/w3/_1999/xhtml/Footer.java
org/w3/_1999/xhtml/Form.java
org/w3/_1999/xhtml/H3.java
org/w3/_1999/xhtml/Head.java
org/w3/_1999/xhtml/Header.java
org/w3/_1999/xhtml/Html.java
org/w3/_1999/xhtml/I.java
org/w3/_1999/xhtml/Img.java
org/w3/_1999/xhtml/Li.java
org/w3/_1999/xhtml/Link.java
org/w3/_1999/xhtml/Meta.java
org/w3/_1999/xhtml/ObjectFactory.java
org/w3/_1999/xhtml/Ol.java
org/w3/_1999/xhtml/P.java
org/w3/_1999/xhtml/Script.java
org/w3/_1999/xhtml/Section.java
org/w3/_1999/xhtml/Ul.java
org/w3/_1999/xhtml/package-info.java
thufir@dur:~/xml/xhtml$
试图从html
中提取数据; html
是静态的,只是从文件中加载。 这是一种愚蠢的做法吗?