RE: empty xmlns attribute

2003-04-15 Thread Simon Kitching
On Wed, 2003-04-16 at 03:05, Warren, David wrote: > Hi Joe, > > Thanks for the response and the suggestion to re-read the Namespaces > spec (which I have). > > > -Original Message- > > From: Joseph Kesselman [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 15, 2003 9:15 AM > > To: [EMAI

RE: DOMConfiguration parameter "schema-location"

2003-04-15 Thread Carla Spruit
Hi, When I use DOMConfiguration "schema-location" to parse a document with only one schema with target namespace http://www.example.com/Report, parsing works fine if I use schema-location "report.xsd". If I use schema-location "http://www.example.com/Report report.xsd", I again receive error mess

Re: Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Jeff Greif
No.  The xsi:schemaLocation attribute is just a hint to the parser about where to find the schema.  If you attach an EntityResolver to the parser (in its constructor, or by some method like setEntityResolver) you have complete control of how any URIs are looked up.  You can resolve particula

Is Xerces 1.4.3 supported on AIX 5.1,5.2 & HP 11i ?

2003-04-15 Thread Subha Sunder
Hi, does anyone know if xerces 1.4.3 supported/runs on AIX 5.1,5.2 and HP 11i ? Thanks _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --

Re: DTD access over the internet

2003-04-15 Thread Jeff Greif
Title: Message Alternatively, you can provide an EntityResolver that will resolve the SystemId (the URI) of the DTD to a copy on the local filesystem of the parsing application.    In general, even a non-validating XML parser is supposed to read the DTD to supply default values for attribute

RE: DOMConfiguration parameter "schema-location"

2003-04-15 Thread Greg McCreath
It looks like that doesn't it. However, when coupled with an EntityResolver, the parser is certainly looking for MySchema.xsd to be resolved. _myDocumentBuilderFactory.setAttribute("http://java.sun.com/xml/jaxp/pro perties/schemaSource", "MySchema.xsd"); -Original Message- From: Ellio

RE: DOMConfiguration parameter "schema-location"

2003-04-15 Thread Elliotte Rusty Harold
Hmm, I was thinking of the pre-DOM 3 Xerces specific schemaLocation and noNamespaceSchemaLocation properties, which I think give the user what they're looking for here (i.e. complete override of whatever the instance document says). I now see that the DOM3 is a little different. However, it's

RE: DOMConfiguration parameter "schema-location"

2003-04-15 Thread Greg McCreath
Hi Elliotte, The docs at http://xml.apache.org/xerces2-j/javadocs/dom3-api/org/apache/xerces/dom3 /DOMConfiguration.html say it *is* possible to use a list of URLs there but only one of them can be a noNamespaceSchemaLocation schema. I use this aspect of JAXP 1.2 to validate noNamespaceSchemaLoc

RE: empty xmlns attribute

2003-04-15 Thread Warren, David
Forgot to add that I'm still seeing the extra attribute. David > -Original Message- > From: Warren, David > Sent: Tuesday, April 15, 2003 11:06 AM > To: '[EMAIL PROTECTED]' > Cc: Warren, David > Subject: RE: empty xmlns attribute > > > Hi Joe, > > Thanks for the response and the sugg

Re: Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Andy Taylor
Hi Joseph, Wouldn't this mean I would have to write my own version of the validate function? Andy >From: Joseph Kesselman <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Can I stop SAX validation from resolving non-approved namespaces? >Date: Tue, 15 Apr 2

RE: empty xmlns attribute

2003-04-15 Thread Warren, David
Hi Joe, Thanks for the response and the suggestion to re-read the Namespaces spec (which I have). > -Original Message- > From: Joseph Kesselman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 15, 2003 9:15 AM > To: [EMAIL PROTECTED] > Subject: Re: empty xmlns attribute > > You've specif

Re: Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Joseph Kesselman
Write and install an entity resolver which filters such requests. That's also what you'd have to do to guard yourself against entity references. __ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.   "may'ron DaroQbe'chugh vaj bIrIQbej"  (

Re: Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Andy Taylor
Hi Elliotte, If someone put something like the following into an XML document:   ...then the validation would try to resolve myNamespace to the schema file on the user's own website. I'd like to prevent this happening - I don't like the idea of users being able to make my server load files on oth

RE: DOMConfiguration parameter "schema-location"

2003-04-15 Thread Carla Spruit
Hi Elliotte, The (Dom Level 3) DOMConfiguration parameter 'schema-location' is a string containing a list of URIs that represents the schemas against which validation should occur. Unfortunately, it is not possible to specify (no)targetNamespaces in this string like in 'schemaLocation' and 'noN

Re: DOMConfiguration parameter "schema-location"

2003-04-15 Thread Elliotte Rusty Harold
According to the DOMConfiguration javadoc, it should be possible to specify multiple schema's in 'schema-location' by using separator space. When I try to parse a document i.e. '4Q99.xml' with schema-location value 'report.xsd ipo.xsd address.xsd' an error is reported saying "failed to read schema

Re: empty xmlns attribute

2003-04-15 Thread Joseph Kesselman
You've specified several attributes with no prefix and no namespace. If there was a default namespace inhereted at this point, the serializer must generate xmlns="" to clear that default. See the Namespaces In XML spec. __ Joe Kesselman, IBM Next-Generation We

DOMConfiguration parameter "schema-location"

2003-04-15 Thread Carla Spruit
Hi, My question refers to the use of DOMConfiguration parameter 'schema-location' of DOMBuilder. The DOM3 sample shows how the 'personal-schema.xml' document can be parsed with validation by setting schema-location to value 'personal.xsd'. According to the DOMConfiguration javadoc, it should be

Re: Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Elliotte Rusty Harold
At 9:22 AM +0100 4/15/03, Andy Taylor wrote: Is there a way to prevent the SAX validation from recognising namespaces apart from the one defined in my own schema and http://www.w3.org/2001/XMLSchema-instance , as I presume this would create additional n

RE: DTD access over the internet

2003-04-15 Thread Rahul Srivastava
Title: Message Hi Christian,   Set an EntityResolver to the parser, and return a null from within resolveEntity() method, for the URI that you wish to ignore.   Cheers, Rahul.     -Original Message-From: Christian Lebaudy [mailto:[EMAIL PROTECTED]Sent: Tuesday, April 15, 2003 2:

RE: Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Rahul Srivastava
Hi Andy,   When you use, external-schemalocation property, any XMLSchema referred from within the XML instance is ignored and the schema specified using the external-schemalocation property is considered, provided, the schema referred and the schema supplied using property have the same tar

RE: XMLDTDValidator to validate a DOM tree ?

2003-04-15 Thread Rahul Srivastava
Hi Anthony, Revalidating an in-memory DOM against DTD is not yet implemented. See: http://xml.apache.org/xerces2-j/faq-dom.html#faq-7 Cheers, Rahul. > -Original Message- > From: Anthony Saucet [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2003 8:15 PM > To: xercer-users > Sub

DTD access over the internet

2003-04-15 Thread Christian Lebaudy
Title: Message   Hello, i am having trouble to parse a very simple document that has a I do not want to acces internet I do not want to have to cut the XML file to get the DOCTYPE section out of it I simply want to parse the document.   I am using : DOMParser parser = new DO

Can I stop SAX validation from resolving non-approved namespaces?

2003-04-15 Thread Andy Taylor
Hi,   I'm writing a server-side application which allows users to upload XML files via HTTP, then parses them and stores the data in a database. I'm using the property http://apache.org/xml/properties/schema/external-schemalocation to validate their file against a specific version of my schema file

empty xmlns attribute

2003-04-15 Thread Warren, David
Hi, I've been scratching my head trying to figure out why the following code fragment generates 8 attributes even though only 7 are set. The extra attribute is 'xmlns=""'. ... public final static String XML_NS = "http://www.w3.org/XML/1998/namespace";; public final static String XMLNS_NS = "http