iOS Question IXML Issue

Discussion in 'iOS Questions' started by yejian, Feb 4, 2015.

Similar threads

B4i Tutorial Files and Folders
B4i Tutorial BarButton icons
B4i Tutorial Notifications with actions
B4i Library iXmlBuilder
B4A Library [B4X] [XUI] Gauge View
  1. yejian

    yejian Member Licensed User

    Dim x As XMLBuilder
    x = x.create("Ysoft")
    x = x.element("Ordine") _
    .element("Prodotti") _
    .attribute("CodBarre", "8001234567890") _
    .attribute("Descrizione", "CALICE FLUTE ROSSO CONF.6 440041 *") _
    .attribute("PrezzoForn", "10.59") _
    .attribute("CodArticoloForn", "HX256356") _
    .attribute("Quantita", "22") _
    .up() _
    .up() _
    .up() _
    File.WriteString(File.DirDocuments, "1.xml", x.AsString)

    The test is successful
    I want results

    How do?

    Dim x As XMLBuilder
    x = x.create("Ysoft")
    x = x.element("Ordine") _
    FOR I= 1 TO 10
    .element("Prodotti") _
    .attribute("CodBarre", "8001234567890") _
    .attribute("Descrizione", "CALICE FLUTE ROSSO CONF.6 440041 *") _
    .attribute("PrezzoForn", "10.59") _
    .attribute("CodArticoloForn", "HX256356") _
    .attribute("Quantita", "22") _
    .up() _
    NEXT
    .up() _
    .up() _

    File.WriteString(File.DirDocuments, "1.xml", x.AsString)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. Please use [code]code here...[/code] tags when posting code.
    2. Your question is about iXmlBuilder library not IXML (as the title says).

    3. Which error do you get (after you fix the syntax errors)?
     
  3. yejian

    yejian Member Licensed User

    How to do effective
    FOR I= 1 TO 10
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    For i = 1 to 10
     x.element(
    "abc").attribute("def").up
    Next
     
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