comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Help with XML and DTD/Shema !!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Help with XML and DTD/Shema !! [message #44311] Mon, 06 June 2005 23:40
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
>
> Yes, there was a problem with this in IDL 6.1. It is now fixed in 6.2.
> I parsed your XML successfully with 6.2.
>
Ok thanks. I just tested it with 6.2 and all works fine.

> The only workaround I can think of for you with IDL 6.1 is to use the SAX
> parser, which may or may not be practical, depending on what you are doing.
>
SAX is faster than DOM but is not very practical for me. In a few time
my XML config files will be more complex and SAX parsing can be pretty
troublesome.

--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
Re: Help with XML and DTD/Shema !! [message #44322 is a reply to message #44311] Mon, 06 June 2005 10:21 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Mon, 06 Jun 2005 16:56:37 +0200, Antonio Santiago wrote:

> Hi group.
>
> I have a XML file (all files are attached) and want to parse with
> IDLffXMLDOMDocument object.
> The Load documentation method says I can specify VALIDATION_MODE (to
> ensure my XML accomplishes the appropiate DTD or Schema) and
> EXCLUDE_IGNORABLE_WHITESPACES (to exclude ignorable whitespaces :) ).
>
> Well, If a set up my XML to use DTD (and put VALIDATION_MODE=2, that is
> validate always) all is right. Also the whitespaces out of elements are
> ignored. But when I use Schema file in the XML i get some errors (the
> 'plugin' elements is not defined and the whitesapces are nor removed).
>
> Can anybody help me? I tested my XSD+XML file with
> " http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx" and all
> is ok.
>
> Is there any problem with IDL and XML Schemas ??

Yes, there was a problem with this in IDL 6.1. It is now fixed in 6.2.
I parsed your XML successfully with 6.2.

The only workaround I can think of for you with IDL 6.1 is to use the SAX
parser, which may or may not be practical, depending on what you are doing.

Karl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Text size weirdness
Next Topic: Polar contour on top of polar map ??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:17:25 PDT 2025

Total time taken to generate the page: 0.00572 seconds