+ wxLogError( wxString::Format(_("unknown class %s"),className ) ) ;
+ return wxInvalidObjectID ;
+ }
+
+ if ( children != NULL && children->GetType() == wxXML_TEXT_NODE )
+ {
+ wxLogError(_("objects cannot have XML Text Nodes") ) ;
+ return wxInvalidObjectID;
+ }
+ if (!node->GetPropVal(wxT("id"), &ObjectIdString))
+ {
+ wxLogError(_("Objects must have an id attribute") ) ;