I need to validate XML and XSD not very acceptable (default one uses too many xsd:sequence and trick with xsd:choice makes validation too acceptable (not sure this is right word))
So, is there good way to turn this
<?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>
Into this
<?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>
On windows with python/java/go ? Its not one-time job, I need to do it automatically