|
selectPath() select the wrong nodes: msg#00023text.xml.xmlbeans.user
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> |
|---|---|---|
| Previous by Date: | RE: SOAPFault validate challenge: 00023, Radu Preotiuc-Pietro |
|---|---|
| Next by Date: | RE: ClassCastException when parsing using SchemaTypeLoader: 00023, Radu Preotiuc-Pietro |
| Previous by Thread: | RE:i: 00023, Cezar Andrei |
| Next by Thread: | XQuery with XMLBeans 2.2.0 + Saxon 8.6.1 still gives different result from 2.1.0 + Saxon 8.1.1: 00023, Daniel.Rodriguez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |