XMLWriter

Discussion in 'Questions (Windows Mobile)' started by Aspire89, Feb 16, 2009.

  1. Aspire89

    Aspire89 Member Licensed User

    how to keep the line <text size="80" color="#ffffff"/> to file? :sign0085:
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Here:
    Code:
    Sub Globals
        
    'Declare the global variables here.

    End Sub

    Sub App_Start
        FileOpen(c1,
    "1.xml",cWrite,,cASCII)
        q = 
    Chr(34'chr(34) = "
        FileWrite(c1,"<text size="&q&"80"&q&" color="&q&"#ffffff"&q&"/>")
        FileClose(c1)
    End Sub
     
  3. Aspire89

    Aspire89 Member Licensed User

    No, I use xml.dll
     
  4. agraham

    agraham Expert Licensed User

    Code:
    wtr.WriteStartElement("text")
      wtr.WriteAttributeString(
    "size""80")
      wtr.WriteAttributeString(
    "color""#ffff")
      wtr.WriteEndElement
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    :sign0188:
     
  6. agraham

    agraham Expert Licensed User

  7. Aspire89

    Aspire89 Member Licensed User

    agraham, Sorry for the bad English and thank for the help
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice