DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29437>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29437 When I have name space in XML, its not working [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2004-06-09 09:28 ------- You have assigned a default namespace in your xml-document. Therefore *all* elements in your document have the namespace "http://www.foo.com" (including the name elements). Maybe it is much more clearer if you write the *same* document as: <?xml version="1.0"?> <foo:doc xmlns:foo="http://www.foo.com"> <foo:name first="David" last="Marston">Mr. Marston</foo:name> <foo:name first="David" last="Bertoni">Mr. Bertoni</foo:name> <foo:name first="Donald" last="Leslie">Mr. Leslie</foo:name> ... </me:doc> >From the XML point of view it contains the same information. For the XPath retrieval of the nodes you *have to declare* the namespace "foo", even if you are not using it (this is described in the faq, where Davids link pointed to). Therefore with the document <?xml version="1.0"?> <doc xmlns="http://www.foo.com" xmlns:foo="http://www.foo.com"> <name first="David" last="Marston">Mr. Marston</name> ... </doc> and the retrieval with SimpleXPathAPI foo.xml / /foo:doc/foo:name everythig should work fine. You should *really* use the mailing list (xalan-c-users)for questions. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
