Click here to Skip to main content
15,920,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have this XML codes and i want to use it in one of my forms what i have to do?

this are the codes flash which i wanna use:

<coffeecupvideoadd>
mainwidth="300"
mainheight="251"
version="3.1"
bkfillclr="0xC0C0C0"
movie="[002] New - intro.flv"
moviex="2"
moviey="2"
moview="297"
movieh="247"
mlink=""
mframe="_self"
transition="none"
bkborder="t"
bkborderwidth="2"
bkbordercolor="0x000000"
bordercolor="0x000000"
disableclicktoactiveprompt="false" loop="t"
startmuted="f"
borderw="1"
bktile="f"
>
<button
x="298"
y="16"
w="11"
h="224"
label="Sound Off"
ulabel="Sound On"
visible="f"
></button>



Posted
Comments
[no name] 14-Jul-12 8:29am    
Your question is not clear. You ask about XML but do not post any. And "the codes flash" is totally meaningless.
Sandeep Mewara 14-Jul-12 12:21pm    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.
Sergey Alexandrovich Kryukov 15-Jul-12 0:05am    
Think just a little: how XML can be related to Forms? XML is XML.
--SA

At a guess you probably need to start with the XmlReader[^] class. Beyond that it's difficult to say.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Jul-12 0:10am    
Who knows? There are a lot more possibilities to be considered in case of such a general question; I provided an overview of major ones, please see.
--SA
Richard MacCutchan 15-Jul-12 3:29am    
Exactly, yet another of those questions where it's anybody's guess what they want.
There are at least three approaches in .NET to generating and parsing XML. Here is my short overview:


  1. Use System.Xml.XmlDocument class. It implements DOM interface; this way is the easiest and good enough if the size if the document is not too big.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^].
  2. Use the classes System.Xml.XmlTextWriter and System.Xml.XmlTextReader; this is the fastest way of reading, especially is you need to skip some data.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmlwriter.aspx[^], http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx[^].
  3. Use the class System.Xml.Linq.XDocument; this is the most adequate way similar to that of XmlDocument, supporting LINQ to XML Programming.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^], http://msdn.microsoft.com/en-us/library/bb387063.aspx[^].


Besides, I'm not sure you need to work with XML directly. You might need to use serialization, in particular, Data Contract. Please see:
http://msdn.microsoft.com/en-us/library/ms731073.aspx[^],
http://msdn.microsoft.com/en-us/library/ms733127.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900