Declaring DTD From API

2006-08-04 Thread Kaan Yamanyar
Dear all, In the xml's I parsed I recieve some errors due to entities declared in dtd. In the mail list i found the solution and it really works. It works if i add !DOCTYPE csf-inputs SYSTEM \C:\projects\odabul\odabul-web\WEB-INF\src\cities\WTGData.dtd to the XML file. But i can not add this

Missing addFoo() method

2006-08-04 Thread Michael Fieseler
Hi, for an element Foo in my xml schema that allows multiple occurrences the methods addFoo and insertFoo are missing in the generated types. The remaining methods such as addNewFoo, insertNewFoo, setFooArray are available. What's the reason for the missing addFoo? I compiled the types using

RE: Fatal errors with the Piccolo parser and invalid xml header

2006-08-04 Thread Ken Robinson
I tried to file a bug with JIRA, but I couldn't find anywhere on the form to submit a new issue. -Original Message- From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 7:29 PM To: user@xmlbeans.apache.org Subject: RE: Fatal errors with the Piccolo parser and

RE: Fatal errors with the Piccolo parser and invalid xml header

2006-08-04 Thread Wing Yew Poon
Perhaps you are not logged in? Anyone is free to find issues. You must register and login if you want to create, comment, vote, or watch issues. - Wing Yew -Original Message- From: Ken Robinson [mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 9:37 AM To: user@xmlbeans.apache.org

How i can keep the CDATA elements

2006-08-04 Thread FERRERO Olivier
Title: How i can keep the CDATA elements Hi, I have some problems with CDATA elements. When I parse a document with some CDATA, xmlbeans transform the characters to remove CDATA. In the same manner I dont know if there is a way to generate CDATA elements. Thanks for your help. Olivier.

RE: Getting VerifyError: TypeStore.find_element_user (need help)

2006-08-04 Thread Radu Preotiuc-Pietro
Steven, java.lang.VerifyError indicates that the representation of the class does not correspond to the constraints in the Java spec, so basically your .class or .jar file is corrupt. Try re-downloading (or re-building) XmlBeans and maybe use the md5 sum to verify your download. Radu

RE: Declaring DTD From API

2006-08-04 Thread Radu Preotiuc-Pietro
Looking at the workaround that you say works, I am assuming that your document is using some entities that are declared in another document. If that's the case, then what you need to do is use your own XMLReader and try setting to false the SAX features

RE: RE: AbstractTypes problem

2006-08-04 Thread Radu Preotiuc-Pietro
Not sure what you are looking for. If you have an XmlObject o and you don't know what type it is, do SchemaType type = o.schemaType(); Does your Schema have 200 types that are all extending a base type such as Shape in the example below? Can all of those types result from the xquery? Do you

RE: How i can keep the CDATA elements

2006-08-04 Thread Wing Yew Poon
Title: How i can keep the CDATA elements XMLBeans does not preserve CDATA sections. This has been addressed most recently on this mailing list by the following posts: From: Lewis, David [mailto:[EMAIL PROTECTED] Sent: July 20, 2006 3:19 PMTo: user@xmlbeans.apache.orgCc: Murphy,