Hello!
I stumbled across some strange Xalan behaviour.
The following code:


        Document context = DomHelper.parseString(
            "<?xml version=\"1.0\"?>"
            + "\n<root>"
            + "\n11111111"
            + "\n<![CDATA[cdata text]]>"
            + "\n22222222"
            + "\n</root>"
        );
        NodeIterator ni = XPathAPI.selectNodeIterator(context,
"/*/node()", context);
        Node n;
        while ((n = ni.nextNode()) != null) {
            System.out.println(n.getNodeValue());
        }


shows only:
11111111

but my simple XPath "/*/node()" should select all root's
subnodes so I expect:
11111111
cdata text
22222222

Could you please help me?
What is wrong?

Alexander Stepochkin,
IT Department,
Troika Dialog, Moscow, Russia
+7 495 258-05-00 ext. 1311



_______________________________________________________

The information contained in this message may be privileged and confidential 
and protected from disclosure. If you are not the original intended recipient, 
you are hereby notified that any review, retransmission, dissemination, or 
other use of, or taking of any action in reliance upon, this information is 
prohibited. If you have received this communication in error, please notify the 
sender immediately by replying to this message and delete it from your 
computer. Thank you for your cooperation. Troika Dialog, Russia. 
Please contact our IT Helpdesk at (+7495) 258 0500 Ext. 1111 or via e-mail: 
[EMAIL PROTECTED] if you need assistance.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to