Code: Select all
<library_images>
<image id="img-1805801772">
<init_from>textures\683521268.jpg</init_from>
</image>
<image id="img-1539403413">
<init_from>textures\512724919.jpg</init_from>
</image>
</library_images>
Code: Select all
void parser :: readImages(irr::io::IXMLReader* xml,image img)
{
while(xml && xml->read())
{
const irr::core::stringw name = xml->getNodeName();
switch (xml->getNodeType())
{
case irr::io::EXN_ELEMENT_END:
if (irr::core::stringw(L"library_images")==name)
{
return;
}
break;
case irr::io::EXN_ELEMENT:
if (irr::core::stringw(L"image")==name)
{
core::stringw id1 = xml->getAttributeValueSafe(L"id");
img.id = id1;
}
if (irr::core::stringw(L"init_from")==name)
{
?????????????????
}
break;
default:
break;
}
}
}