469,922 Members | 1,911 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,922 developers. It's quick & easy.

XMLDOM - Parsing

I'm parsing an XML document using the XMLDOM object in ASP. I am
running into a problem with a section formatted like this:

<MasterElement>
TitleOfElement
<Abbreviation>
TOE
</Abbreviation>
</MasterElement>

If I use node.text, I get TitleOfElement TOE. I need to seperate the
two but cannot find any reference that addresses this. Of course I can
manually parse using standard functions like InStr, but it seems like
there should be a more proper way to extract the data. Anyone run into
this?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
1 2009
Looks like TitleOfElement TOE is a single value, so you can not separate
them using any in-built XMLDOM functions. Any XML parsing requires that the
values are somehow separated.

--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
"Mike Labman" <ml*****@omnitecinc.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
I'm parsing an XML document using the XMLDOM object in ASP. I am
running into a problem with a section formatted like this:

<MasterElement>
TitleOfElement
<Abbreviation>
TOE
</Abbreviation>
</MasterElement>

If I use node.text, I get TitleOfElement TOE. I need to seperate the
two but cannot find any reference that addresses this. Of course I can
manually parse using standard functions like InStr, but it seems like
there should be a more proper way to extract the data. Anyone run into
this?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by reclusive monkey | last post: by
3 posts views Thread by Robert Zurer | last post: by
8 posts views Thread by Mr. x | last post: by
2 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.