private void FillBookWithXML(String pXML) { BRCls_XMLReader oXMLReader = new BRCls_XMLReader(pXML); oXMLReader.LookForParents("book"); this.BookID = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookid")); this.BookName = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookname")); this.BookAuthor = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookauthor")); this.BookISBN = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookisbn")); this.BookDescription = oDBBookController.EscapeValue(oXMLReader.LookForChildren("bookdescription")); }
private void FillLocationWithXML(String pXML) { BRCls_XMLReader oXMLReader = new BRCls_XMLReader(pXML); oXMLReader.LookForParents("location"); this.LocationID = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationid")); this.LocationName = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationname")); this.LocationDescription = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationdescription")); this.LocationAddress = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationaddress")); this.LocationLatitude = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationlatitude")); this.LocationLongitude = oDBLocationController.EscapeValue(oXMLReader.LookForChildren("locationlongitude")); }