NullPointerException when trying to add multiple elements and trying to get a list of Attributes

2002-03-06 Thread Steve Turner
I'm in the process of creating a family tree program in Java which storesthe member data in an XML document. Each member has a set of attributeswhich if they don't have a value assigned to them are set to "m000" a dummyIDREF to keep the parser happy.The problem facing me is one which concern

RE: Using xerces to correct non well-formed documents

2002-03-06 Thread xerces_j_user
Dave Flanagan wrote: > > The ErrorHandler interface in SAX has 3 methods defined > warning, error, and fatalError > > You need to override the default behavior of the fatalError method > in this interface. > This method is called whenever an XML document is found not > to be well formed. At this p

Re: Resolving complex types

2002-03-06 Thread Ahmad Morad
Am Mittwoch, 6. März 2002 16:16 schrieben Sie: > > This is required for doing a schema to schema mapping and produce the > > XSLT stylesheet for the transformation. So when we present the schema > > to the user it makes sense to display the schema data structure with > > all such internal types res

Re: Resolving complex types

2002-03-06 Thread John Keyes
This is required for doing a schema to schema mapping and produce the XSLT stylesheet for the transformation. So when we present the schema to the user it makes sense to display the schema data structure with all such internal types resolved. This will show the schema structure closer to the wa

Re: Resolving complex types

2002-03-06 Thread Sheen Brisals
Hi John, Thanks for your input. This is required for doing a schema to schema mapping and produce the XSLT stylesheet for the transformation. So when we present the schema to the user it makes sense to display the schema data structure with all such internal types resolved. This will show the

Re: Resolving complex types

2002-03-06 Thread John Keyes
Hi Sheen, This is an XML transformation issue, i.e. XSLT. The way to achive this is to write a stylesheet that transforms the first schema into the second one. This is not a trivial task (i.e. invoking a method) and as the schema becomes more complex the robustness and completeness of the stylesh

can serializer ignore empty tags

2002-03-06 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
hi all, we hand over xml to another module that doesn't love empty tags, it hangs up when it finds empty tags. Is there a way, let's say "option" to tell the serializer that it should not output empty tags at all? Any hints kindly appreciated, kind regards Peter Hellmann Siemens Aktiengesellscha

Re: Accessing the internal schema representation

2002-03-06 Thread Jeff Orris
Try using the DOMParser to read the schema into a DOM. You'll have to turn off validation first. Then traverse the DOM to generate your text file description. I'm developing something like this to generate a COBOL copybook and its associated flat file from an XML instance document.

SVGDocument

2002-03-06 Thread Ahmad Morad
Hi all, I have a small problem, but I don't really find a good solution! 1. The "SVGDocument" is an implementation of the Document interface. I want to read XML data from a socket, so I have an InputStream, from which I want to produce a SVGDocument. (There are some methods for

AW: setProperty for external-schemaLocation opens http connection ...

2002-03-06 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
shouldn't parameter 2 be a true or false > -Ursprüngliche Nachricht- > Von: Piccand Régis [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 6. März 2002 08:53 > An: '[EMAIL PROTECTED]' > Betreff: setProperty for external-schemaLocation opens http connection > ... > > > Hi all, > > I

Re: A question about schemas and validation

2002-03-06 Thread Slava Pestov
John, I went ahead and upgraded to Xerces 2.0.1, and now I have a problem; the old 'validation/dynamic' feature no longer seems to work. If I enable the 'http://xml.org/sax/features/validation' feature, it prints errors if the file in question does not define a DTD or schema. This is very annoying

setProperty for external-schemaLocation opens http connection ...

2002-03-06 Thread Piccand Régis
Hi all, I read through the mailing list archives but couldn't find much hints for the following problem. I use a DOMParser, on which I do a setProperty as follows : myDOMParser.setProperty("http://apache.org/xml/properties/schema/external-sc hemaLocation", "http://www.someUri.com file:///D://som

Re: Accessing the internal schema representation

2002-03-06 Thread John Utz
i think you might want to look at Castor castor.exolab.org but i might be a tiny bit wrong. On Tue, 5 Mar 2002, Richard Rowell wrote: > I have developed and XML schema for use in importing/exporting data from my > companies flagship product. However there is some reluctance in certain > (