Hi,
You are right. I am not using xpath/xalan. But I am using xerces parser 1.4.3(SAXParser, implementing interface ContentHandler).

In ContentHandler interface, there is a method :
startElement(String,String,String,Attributes).
The first string refers to namespace.)
I have parent and child elements where they have different namespaces.
But for both the elements, I am getting the same namespace, which is that defined for the parent.

My xml request looks like :

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="
http://schemas.xmlsoap.org/soap/envelope/">   
        <Body>         
                <EL1 generic="2.0" xmlns="urn:uddi-org:api_v2">
                        <EL2 xmlns="urn:uddi-org:repl">abcd</EL2>      
                </EL1>
        </Body>
</Envelope>

For both EL1 and EL2, the namespace obtained is the same as EL1, even though for EL2, different namespace is used. How do I get the EL2 namespace?

Hope I've been able to provide with more info.

Regards,

Kakoli 



-----Original Message-----
From: Joseph Kesselman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 7:35 PM
To: [EMAIL PROTECTED]
Cc: <xalan-j-users
Subject: Re: Query on namespace



Since you didn't mention a stylesheet or XPath, and since you're discussing
parsing rather than stylesheet processing, I suspect you intended for the
Xerces users' list rather than the Xalan users' list. If not, please
provide more information about how you're invoking Xalan to provoke this
problem.

______________________________________
Joe Kesselman  / IBM Research


Reply via email to