473,503 Members | 5,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XalanC1.10: selectNodeList does not retrieve non-namespace nodes

1 New Member
Hi,
I am new to XalanC++1.10, trying to enhance an application to retrieve new XML nodes for processing. Below is an example XML:

Expand|Select|Wrap|Line Numbers
  1. <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:sd="http://example.org/2008/04/sdee">
  2.   <sd:events>
  3.    <sd:evIdsAlert eventId="1234567" vendor="example" severity="low">...</sd:evIdsAlert>
  4.    <sd:evIdsAlert eventId="1234568" vendor="example" severity="low">...</sd:evIdsAlert>
  5.   <evStatus> 
  6.   <appname>mainApp</appname>
  7.   </evStatus>
  8.    </sd:events>
  9.   </env:Envelope>


Code as described below looks like this:

Expand|Select|Wrap|Line Numbers
  1. XalanDocumentPrefixResolver resolver(xmldoc);
  2.  
  3. eventNodeList = evaluator.selectNodeList(
  4. evntnodeList,
  5. domSupport,
  6. doc,
  7. "/env:Envelope/sd:events/evStatus",
  8. prefixResolver);
When i use Xalan's "selectNodeList()" with "prefixResolver" instance and "/env:Envelope/sd:events/evStatus" as xpath, it does not return any node. If i give <evIdsAlert> or <events> in the xpath, then it returns instances of them.

May i please know how can we retrieve non-namespace nodes.
Any pointers/help is greatly appreciated.
Sep 27 '11 #1
0 1451

Sign in to post your reply or Sign up for a free account.

Similar topics

4
5903
by: Jonathan Fine | last post by:
Hello I have written a program that interacts with a command line program. Roughly speaking, it mimics human interaction. (With more speed and accuracy, less intelligence.) It works fine...
2
1759
by: Scott Simpson | last post by:
Can you query from a non-root node using XPathAPI's function selectNodeList(Node contextNode, java.lang.String str)? I'm trying this using the XPath expression "//*" and I'm getting nothing back. I...
26
1514
by: Michael Klatt | last post by:
I am trying to write an iterator for a std::set that allows the iterator target to be modified. Here is some relvant code: template <class Set> // Set is an instance of std::set<> class...
32
4467
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
1
2448
by: John Yung | last post by:
Hi, I have a client (C# MS Excel Project) calling a Web Service to retrieve and update data. One of the business requirement is the client's NT Login ID, IP Address and computer name must be log...
130
6379
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places...
1
1591
by: htres | last post by:
Hello, I'm new to programming and C#, so please bear with my ignorance! I need to extract jpeg images and header data from a binary file. The binary file is formatted with several fixed...
4
17588
by: Ciuin | last post by:
Hi all, I need to mail() emails with user input that does contain non-ascii (umlauts, accents) and non-latin (cyrillic) characters in the "Subject:" and "From:" headers. I understand that they...
399
12634
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
0
973
by: prakash tandukar | last post by:
I have also the same requirement as you have which I had posted on http://forums.microsoft.com/msdn/ShowPost.aspx?postid=3369224&isthread=false&siteid=1 I would like the share this. Have you...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.