Discussions

Web tier: servlets, JSP, Web frameworks: How can I create XML file with two variables

  1. How can I create XML file with two variables (1 messages)

    Hello:
    I am learning XML and want to know and
    How can I create XML file with two variables where the variables are read from the database table.
    How to read var1 and var2 from the table?
    =======================
    <?xml version="1.0"?>
    <package xmlns="x-schema:./ab.xdr">
    <proxy defaultsrc="./var1"></proxy>
    <dataset defaultsrc="./one.xls">
      <datasrc clipformat="one.xls">
    <datafile src="./var2"/>
    </datasrc>
    </dataset>
    </package>
    =========================

    Thank you for your help

    Sem

    Threaded Messages (1)

  2. Creating XML[ Go to top ]

    To create XML you could either use a parser javax.xml.parsers package or create xml using manipulating strings.

    Refer to java doc for details forhttp://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html