// ********************************************************************** //
//
// XML Data Binding
//
// Generated on: 2016-05-12 23:15:46
// Generated from: D:\Embarcadero_Project_XE2\Medieval\test.xml
// Settings stored in: D:\Embarcadero_Project_XE2\Medieval\test.xdb
//
// ********************************************************************** //
#include <vcl.h>
#pragma hdrstop
#include "test.h"
// Global Functions
_di_IXMLvideosType __fastcall Getvideos(_di_IXMLDocument Doc)
{
return (_di_IXMLvideosType) Doc->GetDocBinding("videos", __classid(TXMLvideosType), TargetNamespace);
};
_di_IXMLvideosType __fastcall Getvideos(TXMLDocument *Doc)
{
_di_IXMLDocument DocIntf;
Doc->GetInterface(DocIntf);
return Getvideos(DocIntf);
};
_di_IXMLvideosType __fastcall Loadvideos(const UnicodeString& FileName)
{
return (_di_IXMLvideosType) LoadXMLDocument(FileName)->GetDocBinding("videos", __classid(TXMLvideosType), TargetNamespace);
};
_di_IXMLvideosType __fastcall Newvideos()
{
return (_di_IXMLvideosType) NewXMLDocument()->GetDocBinding("videos", __classid(TXMLvideosType), TargetNamespace);
};
// TXMLvideosType
void __fastcall TXMLvideosType::AfterConstruction(void)
{
RegisterChildNode(UnicodeString("video"), __classid(TXMLvideoType));
ItemTag = "video";
ItemInterface = __uuidof(IXMLvideoType);
TXMLNodeCollection::AfterConstruction();
};
_di_IXMLvideoType __fastcall TXMLvideosType::Get_video(int Index)
{
return (_di_IXMLvideoType) TXMLNodeCollection::List->Nodes[Index];
};
_di_IXMLvideoType __fastcall TXMLvideosType::Add()
{
return (_di_IXMLvideoType) AddItem(-1);
};
_di_IXMLvideoType __fastcall TXMLvideosType::Insert(const int Index)
{
return (_di_IXMLvideoType) AddItem(Index);
};
// TXMLvideoType
UnicodeString __fastcall TXMLvideoType::Get_title()
{
return TXMLNode::ChildNodes->Nodes[UnicodeString("title")]->Text;
};
void __fastcall TXMLvideoType::Set_title(UnicodeString Value)
{
TXMLNode::ChildNodes->Nodes[UnicodeString("title")]->NodeValue = Value;
};
UnicodeString __fastcall TXMLvideoType::Get_director()
{
return TXMLNode::ChildNodes->Nodes[UnicodeString("director")]->Text;
};
void __fastcall TXMLvideoType::Set_director(UnicodeString Value)
{
TXMLNode::ChildNodes->Nodes[UnicodeString("director")]->NodeValue = Value;
};
UnicodeString __fastcall TXMLvideoType::Get_length()
{
return TXMLNode::ChildNodes->Nodes[UnicodeString("length")]->Text;
};
void __fastcall TXMLvideoType::Set_length(UnicodeString Value)
{
TXMLNode::ChildNodes->Nodes[UnicodeString("length")]->NodeValue = Value;
};
UnicodeString __fastcall TXMLvideoType::Get_format()
{
return TXMLNode::ChildNodes->Nodes[UnicodeString("format")]->Text;
};
void __fastcall TXMLvideoType::Set_format(UnicodeString Value)
{
TXMLNode::ChildNodes->Nodes[UnicodeString("format")]->NodeValue = Value;
};
UnicodeString __fastcall TXMLvideoType::Get_rating()
{
return TXMLNode::ChildNodes->Nodes[UnicodeString("rating")]->Text;
};
void __fastcall TXMLvideoType::Set_rating(UnicodeString Value)
{
TXMLNode::ChildNodes->Nodes[UnicodeString("rating")]->NodeValue = Value;
};