logo       

selectPath() select the wrong nodes: msg#00023

text.xml.xmlbeans.user

Subject: selectPath() select the wrong nodes

Hi,

This is the code I try:

ExtensionsType ext = entities.getExtensions(); // xml bean for SAML's Extension element
String X509_QUERY = "declare namespace shibmd='urn:mace:shibboleth:metadata:1.0' " +
                    "declare namespace ds='http://www.w3.org/2000/09/xmldsig#' " +
                    "$this//shibmd:KeyAuthority/ds:KeyInfo/ds:X509Data";
XmlObject [] objs = ext.selectPath(X509_QUERY);

and tried:
 
String X509_QUERY = "declare namespace ds='http://www.w3.org/2000/09/xmldsig#' " +
                    "$this//ds:X509Data";

Both result an XmlAnyType which has content "<ds:X509Certificate .." (i.e. the child of ds:X509Data). I would expect an array of X509Data objects.

Any idea?

Thanks

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise