
批處理提取標(biāo)簽的問(wèn)題<title>內(nèi)容1</title><location>位置1</location><title>內(nèi)容2</title><location>位置2</location><title>內(nèi)容3</title><location>位置3</location>......如何提取標(biāo)簽內(nèi)容賦值給變量a和b內(nèi)容1和位置1必須配對(duì)使用的。賦值給a和b后,a和b可以被內(nèi)容2和位置2的內(nèi)容覆蓋,內(nèi)容2和位置2使用完畢,再把內(nèi)容3和位置3的內(nèi)容賦值給a和b,直到把文件讀完。單獨(dú)提取一個(gè)標(biāo)簽我知道怎么寫(xiě)??jī)蓚€(gè)有配對(duì)關(guān)系的,應(yīng)該怎么寫(xiě)?

