私は次のように表される構造を持っています: (例)
struct struct3
{
struct structchild4
{
float child5;
} child6;
unsigned int child7;
};
これをXMLで次のように表現したい:
<tag1= "struct3">
<name>struct3</name>
<input_type>byte</input_type>
<method></method>
<tag_ref = "structchild4">
<name>child6</name>
</tag_ref>
<tag2= "child7">
<name>child7</name>
<len>4</len>
<value> </value>
</tag2>
</tag1>
私が従う方法は、これを gccXML 形式に変換し、Visual C++ を使用して解析することです。xerces-c DOM パーサーを使用します。
誰かがこれを行う方法を提案できますか? ありがとう!