Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML (question test) Which language should i use?

From: weekend256@-----.---.-- (-------)
To: NULL
Date: 7/9/2004 7:51:00 PM
I used this method to read the XML file,
    DocumentBuilderFactory myfactory =
DocumentBuilderFactory.newInstance();
    DocumentBuilder builder=myfactory.newDocumentBuilder();
    Document doc=builder.parse("http://.......1.xml");
    doc.normalize();
    NodeList ROOTELEMENT =doc.getElementsByTagName("CHILDNAME");

then use this
   <% for (int i=0;i< ROOTELEMENT.getLength();i++){
    	
      Element CHILDELEMENT=(Element) ROOTELEMENT.item(i); %>
  <tr>
     <td><%=CHILDELEMENT.getElementsByTagName("TAGNAME").item(0).getFirstChild().getNodeValue()%>
</td>
  </tr>

to display on the JSP webpage.
Could you tell me your evaluation for this method? is that suitable
for me to use it in the test?
some body mentioned about bean/servlet. Do i need to use them? will it
be better?


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent