[xsd-users] "Not valid after content"
Doug Bengtson
Doug.Bengtson at wnco.com
Tue May 30 14:34:55 EDT 2006
I am using the library.xml file located in the 2.1.1 solaris
distribution. The relative path is:
$XSD_HOME/examples/cxx/tree/library/library.xml. I am using it
unchanged. As a side note, the example runs fine when I pass the
filename into the catalog() method. It's only when I use an input
stream that it doesn't work.
Thanks for the response. Let me know if there's anything else you need
that could help.
-Doug
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Tuesday, May 30, 2006 1:19 PM
To: Doug Bengtson
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] "Not valid after content"
Hi Doug,
Doug Bengtson <Doug.Bengtson at wnco.com> writes:
> I've been trying to get xsd-tree code to work with an input stream and
> I keep getting a "Not valid after content" error thrown as an
exception.
>
> I took the library example from /tree and change the driver.cxx file
> as
> follows:
>
> > //std::auto_ptr<class catalog> l (catalog (argv[1])); std::ifstream
> > fileStream (argv[1]); std::auto_ptr<class catalog> l
> > (catalog(fileStream));
>
> When I run the example it gives me a ":54:7 error: Not valid after
> content" exception description.
Can you provide a sample content (and a schema, if possible) on which
you get this error. Or, at least, what does line 54 look like?
-boris
More information about the xsd-users
mailing list