Title: Message
Beginner question I am sure, but I could not find the (explicit) answer...
 
I tried out the SerializeNodeSet example with the furnished foo.xml document (this sample program takes a command line Xpath argument and lists the elements that match for the document also submitted by command line...). It works for that, but if I try it on an XML document of mine that has a default namespace (but no namespace prefix), no nodes are found. If I remove the xmlns attribute from the input xml document, nodes are then successfully found.
 
So the sample program's selectNodeList/selectNode API call has to be modified to 'tell' Xalan to pull up nodes for that particular namespace. Could somebody show me a sample snippet of the arguments I need to make that happen?? Thanks...
 
P.S. What book do you guys recommend for Xalan (with lots of examples!!)
 

Reply via email to