Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は以下を持っていますxml:
xml:
<Name /> <Sur> mmm </Sur>
デシリアライズするとき、私は次のように書きました。
TiXmlElement* section; section=handle.FirstChild("Name").ToElement() if (section) {}
問題は、if条件が実行されることですfield Name is null。なぜ?私はどこが間違っていますか?感謝。THX
field Name is null
たぶん、次のようにXMLコードのルート要素を定義する必要があります<Person>。
<Person>
<Person> <Name /> <Sur> mmm <Sur /> </Person>