-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Processing XML documents with Oracle JDeveloper 11g
In this section, we shall parse an XML document using the JSTL 1.2 XML tag library. The example XML document, catalog.xml, was added to the JSTLXML project in the previous section.
The parsing application is developed in the parseXML.jsp JSP. Open parseXML.jsp. Next, import the XML document with the JSTL Core tag c:import. Select the Design view of parseXML.jsp and select Import in the JSTL|Core Component Palette in the Design view.

In the Insert Import window specify the Url for the XML document as catalog.xml and click on OK.

The Import tag gets added to the Design view. A corresponding c:import tag gets added to the Source view. Specify a variable name for the XML document imported using the var attribute of the Import tag in the Property Inspector.

The following c:import tag gets added to parseXML.jsp:
<c:import var="xml" url="catalog.xml"/>
The following taglib directive for the JSTL Core tag library also gets added to the parseXML.jsp:
<...
Change the font size
Change margin width
Change background colour