Re: Xerces not calling startElement

2003-04-28 Thread Jeffrey Rodriguez
Corey what changes did you make to your handler? What parser are you using? SAX 2? Most likely you change the signature of your handler. Jeff From: Corey Oordt <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Xerces not calling startElement Date: Mon, 28 Apr 2003 07:

Re: Anyone can explain this error message?

2003-04-28 Thread Sandy Gao
Yes, namespace. It means an element with the local name "Flat_POBox" and without a namespace. Cheers, Sandy Gao Software Developer, IBM Canada (1-905) 413-3255 [EMAIL PROTECTED]

RE: XSModel

2003-04-28 Thread Sandy Gao
Seems to me that, for the example you gave, what you need to get is properties of schema components, at the component level, rather than the XML representation level. This can be done by using XSModel. There are 2 ways of doing so: Xerces grammar preparsing, or PSVI. 1. Preparsing: You can use t

Re: XSModel

2003-04-28 Thread Blake Meike
Many thanks. Blake Meike On Monday, April 28, 2003, at 10:51 AM, Robert Houben wrote: They are deprecated because they "might move" to another package. You are not the first person to be confused by this. (I wasn't the first, either!) Go ahead and use them. Robert Houben mailto:[EMAIL PROTECTED]

Réf. : Re: Réf. : Re: Réf. : RE: XSModel

2003-04-28 Thread Nicolas . GOLOUBENKO
Thank you, I will have a look. Bob Schloss

Re: Réf. : Re: Réf. : RE: XSModel

2003-04-28 Thread Bob Schloss
> introspect the schema itself Sandy>If you want to check the properties of various schema components, then XSModel is the answer. Sandy>If you want to check the original XML representation of the schema, then no, not in the Xerces world. The Xerces schema doesn't retain such information. FY

Anyone can explain this error message?

2003-04-28 Thread whittlea
Title: Anyone can explain this error message? org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content starting with element 'Flat_POBox'. One of '{"":Flat_POBox}' is expected. What does the "":Flat_POBox mean?  Is it an either/or situtation?  Or is it something to do with the n

Réf. : Re: Réf. : Re: Réf. : RE: XSModel

2003-04-28 Thread Nicolas . GOLOUBENKO
>You mean put it in a grammar pool, and give the pool to the parser? I mean loading a schema and making the parser to use it for validation. But I didn't upgrade my code since weeks, and I continue to use this kind of code : ASModel asModel = parser.parseASInputSource(in); // 'in' is an DOMIn

Re: Réf. : Re: Réf. : RE: XSModel

2003-04-28 Thread Sandy Gao
> setting a schema model You mean put it in a grammar pool, and give the pool to the parser? > introspect the schema itself If you want to check the properties of various schema components, then XSModel is the answer. If you want to check the original XML representation of the schema, then no,

Réf. : Re: Réf. : RE: XSModel

2003-04-28 Thread Nicolas . GOLOUBENKO
Absolutely, you're right ! I'm sorry, I made a confusion between ASModel and XSModel. I profit from this discussion to ask my question a second time : after setting a schema model to a dom parser to validate XML instances against this schema, does any API exist to introspect the schema itself w

Re: Réf. : RE: XSModel

2003-04-28 Thread Sandy Gao
> Someone answers me that XSModel was dead and should not be used now. Huh?! XSModel *is* alive, and will be alive for some time (hopefully a long time). But as Robert said, it might be moved to a different package. Is it possible that you are confusing it with ASModel? Thanks, Sandy Gao Softwar

Réf. : RE: XSModel

2003-04-28 Thread Nicolas . GOLOUBENKO
I asked a question like that a few weeks ago. Someone answers me that XSModel was dead and should not be used now. Because I had to introspect schemas, I decided to use a simple XML parser to do that instead of using a specific XSD API. Nicolas

RE: XSModel

2003-04-28 Thread Robert Houben
They are deprecated because they "might move" to another package. You are not the first person to be confused by this. (I wasn't the first, either!) Go ahead and use them. Robert Houben mailto:[EMAIL PROTECTED] http://www.RobertHouben.com/ -Original Message- From: Blake Meike [mailto

XSModel

2003-04-28 Thread Blake Meike
Hey, this is confusing. All the documentation I can find about manipulating an XS Grammar says to get the grammar from the grammar pool, after the XSD is parsed, cast it to an XSGrammar, and then use the "toXSModel()" method to obtain an object for inspection. When I try to actually do this, i

Xerces not calling startElement

2003-04-28 Thread Corey Oordt
Hi everyone, Just the other day may program stopped calling startElement. It calls endElement, startDocument, and others, but it won't call startElement. What did I do, and how can I un-do it ? Thanks, Corey Oordt - To unsubscrib

RE: XML mapping to Java objects

2003-04-28 Thread Kommineni, Sateesh (IndSys)
Hi, I think JAXB addresses the Mapping of XML to Java Objects and vice versa.. All we need to have is the Schema to which our XML files will conform and JAXB will generate the Java Files for the Types we have specified in the Schema . Using these Java Files you can Marshal ( Converting Ja

Re: XML mapping to Java objects

2003-04-28 Thread Dennis Sosnoski
Simon Kitching wrote: On Mon, 2003-04-28 at 12:04, Dennis Sosnoski wrote: I definitely *am* aware of Apache Digester, and mention it in all my talks on different approaches to working with XML in Java. Amazing who hangs out on these lists :-) You never know who's listening... ;-) I should

Re: XML mapping to Java objects

2003-04-28 Thread Simon Kitching
On Mon, 2003-04-28 at 12:04, Dennis Sosnoski wrote: > Simon Kitching wrote: > > >It's such a shame the author of this article was not aware of Apache > >Digester. > > > I definitely *am* aware of Apache Digester, and mention it in all my > talks on different approaches to working with XML in Jav

Re: XML mapping to Java objects

2003-04-28 Thread Dennis Sosnoski
Simon Kitching wrote: It's such a shame the author of this article was not aware of Apache Digester. I definitely *am* aware of Apache Digester, and mention it in all my talks on different approaches to working with XML in Java. Digester is a very useful tool for building structures of objects