>What is the best way to get attribute name and attribute value from an XML file without using all of >library in Xerces?
The question is: WHICH atttribute name and value are you looking for -- where is it located in the document? Without knowing that, it's hard to answer this question. If you just want to list all the attributes from all the elements anywhere in your document, the easiest way is to use the SAX parser and write a document handler which listens for the startElement() call, and prints out (or does something appropriate with) the names and values of the attributes defined on that call. This will be called for each element in the document, so it will eventually see all the attributes anywhere in the document. But I'm having trouble thinking of an application which would really want to do that... That's probably --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
