   | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | |  | Using xpath in Jdom with namespace | Using xpath in Jdom with namespace 2004-02-14 - By Sycheu@(protected)
Back Hi,
I am using jdombeta 10, I modify the XPathReader to access Node in my DOM with namespace: Here is my code to construct the xpath, the rest is the original code in xpathreader:
// Print servlet information XPath servletPath = XPath.newInstance("//xs:schema/xs:simpleType");
But I only get the last node with that path. That should be 11 nodes all together. Can someone please tell me if I miss anything? (attach is my test file).
Thank you.
<HTML><FONT FACE=arial,helvetica><HTML><FONT SIZE=2 PTSIZE=10 FAMILY= "SANSSERIF" FACE="Arial" LANG="0">Hi,<BR> <BR> I am using jdombeta 10, I modify the XPathReader to access Node in my DOM with namespace:<BR> Here is my code to construct the xpath, the rest is the original code in xpathreader:<BR> <BR> // Print servlet information<BR> XPath servletPath = XPath .newInstance("//xs:schema/xs:simpleType");<BR> <BR> But I only get the last node with that path. That should be 11 nodes all together.<BR> Can someone please tell me if I miss anything? (attach is my test file).<BR> <BR> Thank you.<BR> </FONT></HTML>
Earn $52 per hosting referral at Lunarpages.
|
|
 |