[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Writing a Flash Binary

Posted on 2003-12-11
5
Medium Priority
?
712 Views
Last Modified: 2012-06-27
Hi All

I am in need of the following...

1.  Read an XML file that contains the data
2.  and transform the XML and write a Flash binary file

I was told by some that it is easy and resources are available on the net. But as it is urgent I would like you experts to guide/help me out.

I am looking for some help or code examples that I can use from C#.

Thanks

Vrunda

0
Comment
Question by:vrunda
  • 2
3 Comments
 

Expert Comment

by:sentosa_gani
ID: 9926447
unfortunately, I don't have a .NET Documentation installed. But if you have, you can look for System.XML namespace where it has XMLParser class that is used to read an XML file that contains the data. To transform the XML, i don't really know.. i'm sorry
0
 
LVL 7

Accepted Solution

by:
TransBind earned 800 total points
ID: 9929078
This example uses the XMLTextReader class to extract the element names and text strings from the IntroToVCS.xml file and store the information in a string variable.

Example
System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader("c:\\IntroToVCS.xml");
         string contents = "";
         while (reader.Read())
         {
            reader.MoveToContent();
            if (reader.NodeType == System.Xml.XmlNodeType.Element)
               contents += "<"+reader.Name + ">\n";
            if (reader.NodeType == System.Xml.XmlNodeType.Text)
               contents += reader.Value + "\n";
         }
Console.Write(contents);

Copy the code and paste it into the Main method of a console application.

Replace "c:\\IntroToVCS.xml" with the actual file name.


About second question I am not sure what you mean? So I will try to guess it :)  I think you mean XSLT to transform the contents of an XML file into a proprietary binary format. XSLT is capable of outputing only text formats such as XML, HTML and Text. See the documentation for xsl:output at

http://www.w3.org/TR/xslt#output

However, you can produce a text encoding of any data format using something like base64.


0
 
LVL 7

Expert Comment

by:TransBind
ID: 9929098
This article demonstrates on how to use base64 encoding:

http://authors.aspalliance.com/nothingmn/default.aspx?whichpoll=nothingmn_121&aid=121
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question