Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Serialize a Tag using writeToString (Read 3057 times)
Omasu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 26th, 2007
Serialize a Tag using writeToString
Nov 1st, 2007 at 12:38pm
Print Post  
Hi,
do you have a sample that shows how to serialize a tag using writeToString?, or what do i have to change from SiteMap to make it work with this method

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Serialize a Tag using writeToString
Reply #1 - Nov 1st, 2007 at 1:07pm
Print Post  
Hi,

Both the write(File) and writeString() methods of XmlWriter internally call the write(OutputStream) method, which is the one that raises the serializeTag event. So you can handle the event in exactly the same way both when writing to an XML file or to a string.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Omasu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 26th, 2007
Re: Serialize a Tag using writeToString
Reply #2 - Nov 1st, 2007 at 2:16pm
Print Post  
Hi,
i had my doubts because i was getting an Exception when i tried to serialize the tag, but it was for another reason, now everything works fine,

Thanks again!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint