Re: [xml] Whitespace problem with external DTD validation

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Oct 10 2000 - 18:14:00 EDT


On Tue, Oct 10, 2000 at 02:50:29PM -0700, Bill Kendrick wrote:
> Well, the XML documents do not have DTDs embeded in them (they will be
> coming over a network connection from a Point of Sale client device).

  Okay then this methods will not work unless the incoming XML
point with a DOCTYPE to the DTD it uses.

> I tried what you suggested ("xmlDoValidityCheckingDefaultValue = 1;"
> before my call to xmlParseFile()"), and now I get errors during
> the loading, AND still getting the same error about whitespace!!! <:^(
>
>
> test-with-whitespace.xml:3: validity error: Validation failed: no DTD found !

   yeah ... that says it all ...

> The example code I'm writing is less than 250 lines long, and the XML and
> DTD files are 14 lines long, total.. May I email them all to you so you can
> see exactly what I'm trying to do and you can point out my errors? :)

  I this case this won't help the problem ain't with the data

> > Serious: the code doing the validity checking in valid.c should attempt to
> > detect those unsignificant white spaces in the tree and avoid
> > generating validity errors for them
>
> Are there plans to implement this? The project must be up and running
> by October 27th. :)

  Send me some RAM so my compiles are faster :-)

 Quick v2:
  Add a DOCTYPE to the received XML. If needed set-up you own external
entity loader to fetch the DTD.

 Serious:
  This should not be too hard to implement, I'm just busy with 2.2.5 and
XPointer wich I would like to both get quickly out. Will add to TODO

  
Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 10 2000 - 18:43:16 EDT