go and take a look at a XML tutorial. You are not looking for a person id tag, but rather a person element (or tag) and its attribute called id. After you have read that take a look at a DOM tutorial otherwise further things will bite you (such as getNodeValue giving what you want with an attribute, but not element). If you are still having problems after this then post a code snippet and we will give advice.
Cheers,
Gareth
On 22 Dec 2003, at 20:24, Purdy, Edgar M wrote:
I am trying to implement the DOMPrint sample with Xerces to parse the sample data file personal.xml. I want it to extract only the following info, and not repeat the entire file as it does now.
I want to extract the tag "person id" and its value "Big.Boss".
Then the tag "email" and its value "[EMAIL PROTECTED]".
Then the tag "link subordinates" and its value "one.worker two.worker three.worker four.worker five.worker" etc......
Any help is greatly appreciated.
The first record in the file reads like this:
- <person id="Big.Boss">
<name>
<family>Boss</family>
<given>Big</given>
</name>
<email>[EMAIL PROTECTED]</email>
<link subordinates="one.worker two.worker three.worker four.worker five.worker" />
</person>
Are there any c++ tutorials on line for Xerces?
Ed Purdy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]