Hey guys, sorry for the late response. Jody Garnett wrote: > On 29/09/2009, at 12:48 AM, Matthias Lendholt wrote: > >>> 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. > > Not to worry - I needed to see if it still worked (and it was not nearly > as easy as I expected to try it out). A lot of the interesting work in > GeoTools is going on around this parser and I have not been helping Justin. > > We still have two questions about that code snippet for Justin: > - I had to turn off validation, what was I supposed to do to have it > find the mail.xsd schema?
One of two things. Pass in a MLConfiguration(), which has the schema reference "built in" to it. Or ensure that teh schema reference is exactly correct in the instance document you are parsing. > - it did not bind the xsd simple types (such as int) - what do we need > to do for that to work? That is because the XMLConfiguration(), and the schema does not declare any of the types, it just contains a few attributes link lang, and some other stuff. Not really too sure of its purpose actually. The one you want is XSConfiguration(), which declares all the types (and bindings) for xml simple types. > > I would also like to provide that code snippet to the user guide; once > we get it working. The way I would like people to work with the parser > is to have something that parses; and then add more and more bindings to > their configuration until they get what they want out. > > Cheers, > Jody -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
