我正在尝试阅读以下XML文档,其中我遇到问题,请阅读EXT_STRING0><
此标记,在此先感谢
<Results>
<ResultSet fetchSize="0">
<Row rowNumber="1">
<OBJECT_ID>AOM_Reference_User5L76V75WA%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RNUR7OQ9VV5R61F3S2K66AHBV</tokenString><createdAt>04-03-2013T12:48:55</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="2">
<OBJECT_ID>AOM_Reference_UserLKKEV81D1%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9XTJSTYCPUMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T15:57:06</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="3">
<OBJECT_ID>AOM_Reference_User4NO17EFO3%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9V5WRWELSYMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T14:43:55</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="4">
<OBJECT_ID>AOM_Reference_User5K4S9NA1S%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9YBD1VK6OYMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T15:59:05</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="5">
<OBJECT_ID>AOM_Reference_UserZUMIPYUR6%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9XOM81TEXUMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T15:55:29</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="6">
<OBJECT_ID>AOM_Reference_UserT3SURUV71%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RNUR7I9G8KOO21F3S2K66AHBV</tokenString><createdAt>04-03-2013T12:47:33</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="7">
<OBJECT_ID>AOM_Reference_UserJ8LKYCDT6%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9YBB2UG4PUMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T15:59:04</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="8">
<OBJECT_ID>AOM_Reference_UserO9PJ92I6X%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9XP9WF62N6MHCQ11FCI1HC</tokenString><createdAt>28-02-2013T15:55:35</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="9">
<OBJECT_ID>AOM_Reference_UserKK62LWXVU%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9WAUNZJLCYMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T14:51:45</createdAt></Device></Token></EXT_STRING0>
</Row>
<Row rowNumber="10">
<OBJECT_ID>AOM_Reference_User8JLCJG90R%40aom.com</OBJECT_ID>
<EXT_STRING0><?xml version="1.0" encoding="UTF-8"?><Token><Device><deviceId>jfhksjdhfjks231231233</deviceId><tokenString>RIF9Y48JUX1WIMHCQ11FCI1HC</tokenString><createdAt>28-02-2013T15:58:41</createdAt></Device></Token></EXT_STRING0>
</Row>
</ResultSet>
答案 0 :(得分:1)
您可以使用CDATA块和/或继续将xml写为“常规”xml节点,并在读取文件时添加xml声明。
您还可以指定<?xml version="1.0" encoding="utf-8"?>
声明。
答案 1 :(得分:0)
问题解决了我解码了格式并解析了