aspose file tools*
The moose likes XML and Related Technologies and the fly likes Reading XML document as it is in XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Reading XML document as it is in XSL" Watch "Reading XML document as it is in XSL" New topic
Author

Reading XML document as it is in XSL

N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
Hi i have the xml like below

<?xml version="1.0" encoding="UTF-8" ?>
- <content>
- <channel ID="upc_0">
- <section ID="2541178075623443">
- <subsection ID="2692141400124843" bulleted="false" display_title="false" image_active="false" link_active="true" link_name="gmail" link_target="_blank" link_url="http://gmail.com" portal_one_link_url="http://gmail.com" section_type="teaser_data" title="New Sub-Section" uportal_one_link_url="http://gmail.com" wrap_links="false">
<pre>rr aa mm ee ss hh</pre>
</subsection>
</section>
</channel>
</content>

i want to read <pre> tag of subsection tag as it is in xsl how i can achieve this like below

<xsl:stylesheet>
-----
----------
<pre>rr aa mm ee ss hh </pre>
-------
</xsl:stylesheet>

I need help on this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading XML document as it is in XSL