[jdom-interest] Re: How to get src:key attribute

netizen netizen.mail at attbi.com
Thu Dec 19 11:42:37 PST 2002


Thanks.  I'm kind of new to using Namespace so I was wondering how you
do it.

I tried the following getAttributeValue() and tried it with the
namespace:
strBuff = docXML.getRootElement()
                .getAttributeValue( "key", "src" );

but it just returns the value "src".

and
strBuff = docXML.getRootElement()
                .getAttributeValue( "src", "key" );

but it just returns the value "key".


My document is:
<?xml version="1.0" encoding="UTF-8" ?>
<ServiceProperties type="smtp" ... src:key="1" >
..
</ServiceProperties>


Again thanks for any h help



-- 
Best regards,
 netizen                            mailto:netizen.mail at attbi.com





More information about the jdom-interest mailing list