|
-
Jun 11th, 2001, 01:42 PM
#1
Thread Starter
New Member
search xml file for text between two tags
What's the best way to go about searching an external xml file for the text between two tags and assigning that text to a string? Some of these xml files can get rather lengthy and I'm trying to figure out the most efficient way possible.
Thanks!
-
Jun 12th, 2001, 05:02 AM
#2
Frenzied Member
What language will you be using?
-
Jun 12th, 2001, 10:59 AM
#3
Thread Starter
New Member
-
Jun 12th, 2001, 11:26 AM
#4
lets say you have an xml doc myxmldoc.xml that looks like this
Code:
<blah>
<test>hiya</test>
</blah>
to get the text in test:
Code:
Dim xmlDoc As MSXML.DOMDocument
Dim xmltext as string
Set xmlDoc = New MSXML.DOMDocument
xmlDoc.async = False
xmlDoc.load "c:\myxmldoc.xml"
xmltext = xmlDoc.selectSingleNode("blah/test").text
-
Jun 18th, 2001, 11:15 AM
#5
Thread Starter
New Member
What if you're using XSL too...
I'm using XSLT on this XML file as well.... How would you apply a XSL transformation to the example you provided?
Thanks for the help. Your explanation makes good sense.
Tom
www.blazerowners.com
Chevy Blazer Owner's Club
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|