Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in XML only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
XML
extract the plain text from an xml file
extract the plain text from an xml file
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
saumalatha
New Member
Join Date:
Nov 2008
Posts:
3
#1
extract the plain text from an xml file
Nov 3 '08, 07:02 AM
someone please help me do this...how to extract the plain text from an xml file.
sgxbytes
New Member
Join Date:
Sep 2008
Posts:
25
#2
Nov 3 '08, 07:14 AM
using xsl:value-of u can get the text by giving the correct xpath.
if you send some sample xml and describe what exactly you want it will be easy to provide solution
regards
Raj
Comment
Post
Cancel
saumalatha
New Member
Join Date:
Nov 2008
Posts:
3
#3
Nov 3 '08, 07:54 AM
thanks for reply.
In the follwoing xml file :
<book>
<subject name="match"/>
<subject name="english"/> test
</book>
I want to read the text like "test" from the xml .
Comment
Post
Cancel
sgxbytes
New Member
Join Date:
Sep 2008
Posts:
25
#4
Nov 3 '08, 07:57 AM
<xsl:value-of select="."/>
Comment
Post
Cancel
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#5
Nov 3 '08, 12:46 PM
or given as absolute path:
[CODE=xml]<xsl:value-of select="/book/text()"/>[/CODE]
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment