Re: Validating XML against schema (XSD) possible with TCL?
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Tue, 08 Sep 2009 11:10:17 -0500
ben@xxxxxxxx wrote:
I have been reading every bit of documentation I can find and am still
not clear if this is doable with TclXML or TDom.
I only need to read an XML file and validate it (+ use the data of
course) so SAX style implementation is enough.
Can anyone help?
Do you really want/need to validate it - or just to process it?
The Web Services for Tcl package allows you to take an XSD and an XML message and transforms it to a dictionary that you can process.
It does not validate that the XML meets the XSD -- it just pulls out the parts that meet the elements and makes a dictionary. I.e. no range checks and no error if additional elements are present or required elements are missing.
Are you actually attempting to make a Web Service call with a WDSL or what?
--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
- References:
- Validating XML against schema (XSD) possible with TCL?
- From: ben@xxxxxxxx
- Validating XML against schema (XSD) possible with TCL?
- Prev by Date: Re: Validating XML against schema (XSD) possible with TCL?
- Next by Date: Re: passing variable as default value to procedure parameter
- Previous by thread: Re: Validating XML against schema (XSD) possible with TCL?
- Next by thread: Re: Validating XML against schema (XSD) possible with TCL?
- Index(es):
Relevant Pages
|