Hello,
I use llblgen v1.0.2005.1 selfservicing.
I have two pbs ;
- I have a collection witch contain 2 entity linked.
I want to write an xml file witch contain all data of the two entity for an id.
i write a class ;
public static MamJobsCollection jobsxml(string id)
{
MamJobsCollection jobs = new MamJobsCollection();
IPredicateExpression filter = new PredicateExpression();
RelationCollection rel = new RelationCollection();
rel.Add(MamJobsEntity.Relations.MamJobsAffectationEntityUsingFicJobId);
filter.Add(MamJobsFields.FicJobId == id);
jobs.GetMulti(filter,0, null,rel);
return jobs;
}
and i call it like this :
protected void Button1_Click(object sender, EventArgs e)
{
StreamWriter writer = new StreamWriter("c:\\jobs.xml");
string stringxml = string.Empty;
fopxml.jobsxml("561").WriteXml(out stringxml);
writer.Write(stringxml);
writer.Close();
}
so it work, but i don't have the second entity.
i try to make two collection and put it in the stream but i have a pb of root nod.
StreamWriter writer = new StreamWriter("c:\jobs.xml");
string stringxml = string.Empty;
fopxml.jobsxml("561").WriteXml(out stringxml);
writer.Write(stringxml);
fopxml.jobsaffxml("561").WriteXml(out stringxml);
writer.Write(stringxml);
writer.Close();
- I don't understand how to write a compact xml i think the documentation is not the same than options in visual studio.
i've read this thread (http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=832&HighLight=1) but i need a concret exemple.
someone can help me ?
thanks.