Thanks... 

you just gave me an Idea, I can extract the DTD reference prior to @DOM'n it
then place it back in prior to writing it back.

Ben


-----Original Message-----
From: Scott Cadillac [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 09, 2004 7:50 AM
To: [EMAIL PROTECTED]
Subject: RE: Witango-Talk: XML Question.

Hi Ben,

> That's just it. I searched my entire drive and didn't find the
> tango.dtd

Hmmm...they must have made the file virtual now - I've seen this file, but
maybe that was back 
under Tango2000.


> I was hoping to not have to muck with the taf file, I wanted to read it
> as
> is.
> And If XPATH doesn't require DTD then why isn't there an attribute on
> the
> @DOM tag to say hay I don't need to deal with DTD.

If the DTD is declared in the instructions prolog of the XML file, then the
parser wants to 
read it - the only way to get the parser to ignore it is to remove the
declaration from the 
XML. That's how XML parsers work.

If you don't want to edit the TAF, then I would suggest a different XML file
for testing.

Here's a sample for you:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/xmlsdk/html/xmconsamplexmlfileforxpathsyntaxinventoryxml.asp

Hope this helps. Cheers....
 
> Ben
> 
> 
> -----Original Message-----
> From: Scott Cadillac [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 08, 2004 11:36 PM
> To: [EMAIL PROTECTED]; Ben Johansen
> Subject: Re: Witango-Talk: XML Question.
> 
> Hi Ben,
> 
> The tango.dtd is somewhere on your harddrive, but if you're just
> dinging
> around, then I would 
> just remove the DTD declaration to simplify things.
> 
> XPath does not require a DTD, only the XML document itself if you want
> to
> validate it - but 
> validation is not required either, just well-formed XML.
> 
> While playing with XPath keep in mind that the syntax is almost nothing
> like
> the Witango 
> XPointer syntax - but XPath is way more powerful.
> 
> Have fun :-)
> 
> Scott Cadillac,
> XML-Extranet ~ 403-254-5002 ~ [EMAIL PROTECTED]
> ------------
> Well-formed Programming in C# ASP.NET, Witango and XML 
> For Hire ~ http://xmlx.ca/forhire
> ------------
> IExtranet ~ http://IExtranet.net
> ------------
> Weblog ~ http://xmlx.ca
> Forums ~ http://forums.xmlx.ca
> Knowledge Base ~ http://kb.xmlx.ca
> ------------
> P.O. Box 69006
> RPO Bridlewood SW
> Calgary, Alberta
> Canada T2Y 4T9
> 
> 
> 
> -----Original Message-----
> From: "Ben Johansen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Fri, 8 Oct 2004 23:15:47 -0700
> Subject: Witango-Talk: XML Question.
> 
> > Hi 
> > 
> >  
> > 
> > It is cooling off here in Phoenix ;-)
> > 
> >  
> > 
> > I am delving into XPATH and wanted to use a TAF file as a quick XML
> > file to
> > dink around with.
> > 
> >  
> > 
> > Using
> > 
> > Product Witango Witango Application Server (Standard Edition Update)
> > Version 5.5.003 Liquorice (Win32)
> > 
> >  
> > 
> > Command
> > 
> > <@ASSIGN NAME="myDom" SCOPE="application" VALUE=<@DOM
> > VALUE="@@request$domfile">> 
> > 
> > <@DOMSEARCH Object='myDom' XPATH='* /*'>
> > 
> >  
> > 
> >  
> > 
> > I get this error.
> > 
> >  
> > 
> > 
> > Error
> > 
> > 
> > An error occurred while processing your request: 
> > 
> > File: test_xpath.taf
> > Position: Results1
> > Class: Internal
> > Main Error Number: -902
> > 
> > An error occurred while parsing the XML.
> > An exception occurred! Type:RuntimeException, Message:Could not open
> > DTD
> > file 'c:\inetpub\wwwroot\tango.dtd'
> > 
> >  
> > 
> > Where can I get the tango.dtd?
> > 
> >  
> > 
> > Ben
> > 
> >  
> > 
> > 
> >
> _______________________________________________________________________
> > _
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> 
> 
> _______________________________________________________________________
> _
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> 
> 
> _______________________________________________________________________
> _
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to