Hi Arnaud,
It's pretty busy on this group today! Thanks for taking the time to look at
my problem. I am sure you must be pretty busy.
PS: Should I use your email address for this kind of reply?
I'm using the following (xml related) libs:
Castor 0.9.3
Xerces 1.4.2
Xalan 2.1.0
Jaxp 1.1
and finally jdk 1.3.0_02 that is included with JBuilder (5 enterprise).
The application is a web application running on Tomcat 3.2.1, though later I
want to use Resin (I've got a number of issues with Tomcat but not related
to xml).
Thanks,
Michel
-----Oorspronkelijk bericht-----
Van: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 8 augustus 2001 19:36
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [castor-dev] <any> support
Hi Michel,
I've just tested your code, all is working fine for me.
I'll take a look at it later (what version are you using?)
Arnaud
> -----Original Message-----
> From: Michel Smits [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 3:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] <any> support
>
>
> Hi Arnaud,
>
> Thanks for the suggestion.
>
> I made some modifications to make the code compilable and end up with the
> following:
>
> StringReader xml = new StringReader(
> "<Contract><AL/><PP><VP/><OP/><BA/><HM/><RI/></PP>" +
> "<EL><AS/><OE/></EL><TE/></Contract>");
>
> SAX2ANY handler = new SAX2ANY();
> SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
> parser.getXMLReader().setContentHandler(handler);
> parser.getXMLReader().setErrorHandler(handler);
> parser.parse(new InputSource(xml), (DefaultHandler)null);
> AnyNode myNode = handler.getStartingNode();
> StringWriter out = new StringWriter();
> Marshaller.marshal(myNode, out);
> System.out.println(out.toString());
>
> And get the following result:
> <?xml version="1.0"?>
> <></><></></></></></></><></></></></></>
>
> The structure seems intact, but the names are lost.
> Am I doing something wrong here?
>
> The other suggestion is use a mapping, but the problem is I cannot
determine
> the structure of the xml I'm going to parse (it is completely external to
my
> application).
>
> Any suggestions are welcome.
> Thanks,
> Michel
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev