<?xml version="1.0" encoding="utf-8"?>
<Nodeprops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Text>dfsd</Text>
<FillColor />
<Action>select</Action>
<loop_play>false</loop_play>
<mystep_code>first</mystep_code>
<father_node>f</father_node>
<FileName>dfdf</FileName>
<ErroyFileName>dsf</ErroyFileName>
<ID>1</ID>
</Nodeprops><?xml version="1.0" encoding="utf-8"?>
<Snodeprops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ID>0</ID>
<Text>ert</Text>
<FillColor />
<FileName>fsdf</FileName>
<ErroyFileName>dfsdf</ErroyFileName>
</Snodeprops>
这是我生成的一个xml文件
现在我想反序列化Nodeprops是一个属性类 Nodeprops也是一个属性类
而我在反序列化的时候必须知道他们各自是哪个属性类下来再分别反序列化
现在的问题是我怎么知道这些是Nodeprops还是Nodeprops啊
<Nodeprops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Text>dfsd</Text>
<FillColor />
<Action>select</Action>
<loop_play>false</loop_play>
<mystep_code>first</mystep_code>
<father_node>f</father_node>
<FileName>dfdf</FileName>
<ErroyFileName>dsf</ErroyFileName>
<ID>1</ID>
</Nodeprops><?xml version="1.0" encoding="utf-8"?>
<Snodeprops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ID>0</ID>
<Text>ert</Text>
<FillColor />
<FileName>fsdf</FileName>
<ErroyFileName>dfsdf</ErroyFileName>
</Snodeprops>
这是我生成的一个xml文件
现在我想反序列化Nodeprops是一个属性类 Nodeprops也是一个属性类
而我在反序列化的时候必须知道他们各自是哪个属性类下来再分别反序列化
现在的问题是我怎么知道这些是Nodeprops还是Nodeprops啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货