On Mar 23, 9:01 am, "Pathik" <gandhi.pat...@gmail.com>
wrote:
my i/p xml is like:
<NewData xmlns:--------namespace declaration
<element1></element1>
<mynamespace:element2 obs="1234"/>
---
--
</NewData>
Posting examples like that is a very bad idea, since people
trying to help you are left wondering what you really
meant, what are geniune problems with your code/documents
and what are merely typos/thinkos introduced when hastily
typing that not-even-pseudocode.
General advice is always trying to post what is commonly
called 'minimum complete example' demonstrating your
problem, and using copy-paste to do it as well to avoid
introducing extra bugs.
Now, in my xsl file what i did, is first declared
namespace same as in i/p xml file. then i wrote the xpath
expression like: NewData/mynamespace:element1
but i am not able to extract data from element1
Well, since you didn't post any real example, it's hard to
tell what your problem really is, but element1 does not
seem to be in the mynamespace namespace, now does it?
element2 is, but you do not refer to it in your XPath.
what is the problem? is it right way of doing?
The right way of doing what?
--
Pavel Lepin