If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: XML question

Well, I've only used the DOM for MSXML in VB and ASP, but when you want to
do it for VB you have to use the .text suffix of the node you want to access.
I'd write up the code, but it'd be pointless since it's VB - just try tacking
on a .text or whatever the equivalent might be to access the text of the
desired node.

Re: XML question

If you just want to scan an XML document and extract certain information, I
would suggest using the SAX methods instead of the DOM methods. SAX is
"Simple API for XML". It simply scans through a document and calls methods
of a class that you provide when certain events happen -- such as element
starts, element ends, text found in document, and others.

I'm looking at the documentation for IBM's XML4J, which contains a package
called "org.xml.sax.helpers". In this there is a class called
DefaultHandler, which you can subclass to be notified of those events.
Probably other XML parsers contain the same or similar class.

The product comes with examples of how to use SAX. You may be using a
different parser. If yours doesn't support SAX, look for one that does.

Fion <lixiz@hotmail.com> wrote in message news:39597de6$1@news.devx.com...
>
> I'm just a newbie at XML and an average Java programmer.
> Please help.
>
> How do I extract the node value of "Text" according to a required
"Element"
>
>