Jody Garnett schrieb: > >> No - that's not true :-) > > I see then I am confused ... let me check - adding a test method to > ParserTest with the following "naked" configuration.
Sorry! My fault. It was a misunderstanding on my side. I mixed up the Encoder in the background creating the WPS request out of the Parameters and your Parser to create this XML. But thanks a lot for the code snippet. It helps me to understand how it works. I'll try to use the Parser to read in my complex XML fragment. > > public void testNakedXMLParse() throws Exception { > // set up a parser that only has the the xml schema bindings > Parser parser = new Parser( new XMLConfiguration() ); > > parser.setValidating(false); > > > > Map map = (Map) parser.parse( > MLSchemaLocationResolver.class.getResourceAsStream("mails.xml")); > List mail = (List) map.get("mail"); > Map mail0 = (Map) mail.get(0); > System.out.println( "mail0:"+mail0 ); > String id = (String) mail0.get("id"); > assertEquals( "xs int", "0", id ); // xsd simple type bindings > not provided > > Map envelope = (Map) mail0.get("envelope"); > List<String> from = (List<String>) envelope.get("From"); > assertEquals( "xs string multiplicity","b...@microsoft.com > <mailto:b...@microsoft.com>", from.get(0) ); > > > > Map mail1 = (Map) mail.get(1); > assertNotNull( "mail multiplicity", mail1); > } > Cheers, Matthias ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel