Hi guys, For example, I have the following XML file:
<?xml version="1.0" encoding="UTF-8"?> <!--<!DOCTYPE zwiftAgent:agents SYSTEM "test.dtd"> --> <!DOCTYPE agents SYSTEM "agent.dtd"> <agents xmlns:zwiftAgent="http://www.test.com"> <zwiftAgent:agent zwiftAgent:agentID="1"> <zwiftAgent:name>James Gosling</zwiftAgent:name> <zwiftAgent:pager>1-555-5555</zwiftAgent:pager> <zwiftAgent:zipcode>00000</zwiftAgent:zipcode> <city>New York</city> <state>NY</state> <country>USA</country> </zwiftAgent:agent> </agents> How can I extract only those elements that are in zwiftAgent namespace? I don't need <city>, <state> or <country> elements. I am using SAX parser from XercesImpl v.2.0. Thanks, Leon ----------- Leon Zilber HP Internet Operation R&D Lab phone: 973.443.78.82 email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
