Click here to Skip to main content
16,012,025 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: How to fix "Error Parsing Entityname" Exception Pin
Curtis Schlak.12-Jan-06 10:36
Curtis Schlak.12-Jan-06 10:36 
GeneralRe: How to fix "Error Parsing Entityname" Exception Pin
Zenly12-Jan-06 11:30
Zenly12-Jan-06 11:30 
GeneralRe: How to fix "Error Parsing Entityname" Exception Pin
Curtis Schlak.12-Jan-06 12:55
Curtis Schlak.12-Jan-06 12:55 
GeneralRe: How to fix "Error Parsing Entityname" Exception Pin
Zenly12-Jan-06 14:02
Zenly12-Jan-06 14:02 
GeneralRe: How to fix "Error Parsing Entityname" Exception Pin
Curtis Schlak.13-Jan-06 1:33
Curtis Schlak.13-Jan-06 1:33 
QuestionUnable to Load XML Pin
Samy Lahur11-Jan-06 2:32
Samy Lahur11-Jan-06 2:32 
QuestionGrouping multiple paragraph styles and multiple character styles using xsl Pin
gandhiaryah10-Jan-06 23:28
gandhiaryah10-Jan-06 23:28 
QuestionXML Serialization Pointer Fix uping Pin
asdf98910-Jan-06 9:32
asdf98910-Jan-06 9:32 
Summary Question: How can I do pointer fix uping using XML Serialization?

I'm getting tripped up over one idea when performming XML serialization.

Lets say I have a simple class structure where Students have Teachers.

<br />
class Teacher<br />
{<br />
    public string name;<br />
}<br />
<br />
class Student<br />
{<br />
public  Teacher mTeacher;<br />
}<br />
<br />
main<br />
{<br />
Teacher teacher = new Teacher();<br />
teacher.name = "Mr Smith";<br />
<br />
Student [] students = new Student[2];<br />
<br />
students[0] = new Student();<br />
students[1] = new Student();<br />
<br />
students[0].mTeacher = teacher;<br />
students[1].mTeacher = teacher;<br />
<br />
...<br />
<br />
SERIALIZE students[]<br />
...<br />
DESERIALIZE students[]<br />
<br />
}<br />



What I'm finding is that when I serialize/deserialize, I'll find that each student has their own unique teacher "Mr Smith" rather than both students sharing the same teacher.

When I do this kind of serialization using a BinaryFormatter I find that the teacher is not created twice and that the serializer realizes that this object has already been serialized and essentially stores a pointer and when the object is serialized, that pointer is fixed up.

Summary Question: How can I do pointer fix uping using XML Serialization?
QuestionTransform to HTML with javascript Pin
Colin Angus Mackay10-Jan-06 5:18
Colin Angus Mackay10-Jan-06 5:18 
AnswerRe: Transform to HTML with javascript [Quick and dirty workaround] Pin
Colin Angus Mackay10-Jan-06 6:12
Colin Angus Mackay10-Jan-06 6:12 
AnswerRe: Transform to HTML with javascript Pin
Curtis Schlak.10-Jan-06 6:54
Curtis Schlak.10-Jan-06 6:54 
GeneralRe: Transform to HTML with javascript Pin
Colin Angus Mackay11-Jan-06 0:24
Colin Angus Mackay11-Jan-06 0:24 
GeneralRe: Transform to HTML with javascript Pin
Curtis Schlak.11-Jan-06 2:18
Curtis Schlak.11-Jan-06 2:18 
QuestionHelp with assignment question please! Pin
R0ssini9-Jan-06 11:30
R0ssini9-Jan-06 11:30 
AnswerRe: Help with assignment question please! Pin
Christian Graus9-Jan-06 11:55
protectorChristian Graus9-Jan-06 11:55 
GeneralRe: Help with assignment question please! Pin
R0ssini9-Jan-06 12:03
R0ssini9-Jan-06 12:03 
GeneralRe: Help with assignment question please! Pin
Christian Graus9-Jan-06 12:09
protectorChristian Graus9-Jan-06 12:09 
GeneralRe: Help with assignment question please! Pin
R0ssini9-Jan-06 12:23
R0ssini9-Jan-06 12:23 
GeneralRe: Help with assignment question please! Pin
Christian Graus9-Jan-06 12:26
protectorChristian Graus9-Jan-06 12:26 
GeneralRe: Help with assignment question please! Pin
R0ssini9-Jan-06 12:37
R0ssini9-Jan-06 12:37 
GeneralRe: Help with assignment question please! Pin
R0ssini11-Jan-06 0:47
R0ssini11-Jan-06 0:47 
GeneralRe: Help with assignment question please! Pin
R0ssini11-Jan-06 0:51
R0ssini11-Jan-06 0:51 
GeneralRe: Help with assignment question please! Pin
R0ssini11-Jan-06 0:58
R0ssini11-Jan-06 0:58 
GeneralRe: Help with assignment question please! Pin
Itech Consulting26-Jan-06 15:03
Itech Consulting26-Jan-06 15:03 
GeneralRe: Help with assignment question please! Pin
Itech Consulting26-Jan-06 15:06
Itech Consulting26-Jan-06 15:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.