2
我需要驗證XML和XSD不是很接受的(默認的使用太多的xsd:序列和招用的xsd:選擇使得驗證過可以接受的(不知道這是正確的字))瞭解XML擺脫文本內容
那麼,有沒有把這個
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
<book category="cooking">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="children">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="web">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>
進入這個
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
<book category="cooking">
<title lang="en"></title>
<author></author>
<year></year>
<price></price>
</book>
<book category="children">
<title lang="en"></title>
<author></author>
<year></year>
<price></price>
</book>
<book category="web">
<title lang="en"></title>
<author></author>
<year></year>
<price></price>
</book>
</bookstore>
在使用Python/Java的窗戶好方法/去?它不是一次性工作,我需要自動完成
你可以找到一種方法來解決你的問題與正則表達式,檢查[這個主題](https://stackoverflow.com/questions/7167279/regex-select-all-text-between-tags) –