xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brenda Bell <bb...@juicesoftware.com>
Subject Problem with attribute namespaces
Date Fri, 12 Jul 2002 19:46:41 GMT
I've used several different SAXParsers to parse the following document:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <businessList generic="1.0" operator="Microsoft Corporation"
truncated="false" xmlns="urn:uddi-org:api">
      <businessInfos>
        <businessInfo businessKey="ba744ed0-3aaf-11d5-80dc-002035229c64">
          <name>XMethods</name>
          <description xml:lang="en">Web services resource
site</description>
          <serviceInfos>
            <serviceInfo serviceKey="d5b180a0-4342-11d5-bd6c-002035229c64"
businessKey="ba744ed0-3aaf-11d5-80dc-002035229c64">
              <name>XMethods Barnes and Noble Quote</name>
            </serviceInfo>
            <serviceInfo serviceKey="ed85f000-4345-11d5-bd6c-002035229c64"
businessKey="ba744ed0-3aaf-11d5-80dc-002035229c64">
              <name>XMethods Pacific Bell SMS Service</name>
            </serviceInfo>
            <serviceInfo serviceKey="d5921160-3e16-11d5-98bf-002035229c64"
businessKey="ba744ed0-3aaf-11d5-80dc-002035229c64">
              <name>XMethods Delayed Stock Quotes</name>
            </serviceInfo>
            <serviceInfo serviceKey="618167a0-3e64-11d5-98bf-002035229c64"
businessKey="ba744ed0-3aaf-11d5-80dc-002035229c64">
              <name>XMethods Currency Exchange Rates</name>
            </serviceInfo>
          </serviceInfos>
        </businessInfo>
      </businessInfos>
    </businessList>
  </soap:Body>
</soap:Envelope>

Where I'm having a problem is in my handler's startElement implementation.
Seems that attributes(idx).getURI() always returns an empty string.  For an
attribute like businessKey, I would have expected the default URI
"urn:uddi-org:api".

Is this a bug in the parser?  Or am I doing something wrong?

Mime
View raw message