No, 
This is a Namespaces issue. Node precursor'd by a coloned value

What I suggest is to search and remove the "Copernic:" from the string

Example <Copernic:Title> becomes <Title>

Then try bringing it into the @DOM

Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller 
Available for Web App. Developement


-----Original Message-----
From: Ted Wolfley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 1:27 PM
To: witango-talk@witango.com
Subject: RE: Witango-Talk: xml parsing question

Tried that and get the following error:
 
Class: Internal
Main Error Number: -902


An error occurred while parsing the XML.

Is this a Witango 5.0 bug?

Ted

-----Original Message-----
From: Ben Johansen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 3:17 PM
To: witango-talk@witango.com
Subject: RE: Witango-Talk: xml parsing question

Hi,

Use the @DOM tag to get it into a DOM variable

<@ASSIGN NAME="myDom" SCOPE="application" VALUE=<@DOM
VALUE="<XML><DIV><P>Paragraph 1 </P><P>Paragraph 2</P></DIV></XML>">> 

Then you will need to look up the xpointer syntax to extract the values

Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Web App. Developement


-----Original Message-----
From: Ted Wolfley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 12:38 PM
To: witango-talk@witango.com
Subject: RE: Witango-Talk: xml parsing question

I am using Witango Server 5.0.  I put the xml text into a variable called
@@request$vsummed and tried putting it into a DOM like this:

<@DOMINSERT OBJECT="mydom" SCOPE="request" ELEMENT="root()"
POSITION="append">
<@VAR vsummed SCOPE=Request>
</@DOMINSERT>

And I get the following error:

Main Error Number: -903

The specified element cannot be found, or element specifier is empty.
root()

I am new to XML so can you tell me what I am missing?

Thanks.

Ted

-----Original Message-----
From: Dale Graham [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 2:14 PM
To: witango-talk@witango.com
Subject: Re: Witango-Talk: xml parsing question

You can put it into a DOM and work with it that way - that'd be the easiest
way to handle this.

On Mar 22, 2005, at 12:34 PM, Ted Wolfley wrote:

> Hi,
>  
> I am using a summarizer COM object in a taf to bring back the key 
> concepts of a text string.  The output is in xml.  How do I parse out 
> the key concepts and put them into an array?
> Here is what a sample of the xml output looks like (I bolded the key 
> concept words):
>  
> <?xml version="1.0" encoding="UCS-2" standalone="no"?> 
> <Copernic:Summary xmlns:Copernic="http://www.copernic.com/";
> xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";  
> xsi:schemaLocation="http://www.copernic.com/ Schema.xsd"> 
> <Copernic:Header> <Copernic:Title></Copernic:Title> 
> <Copernic:GUID>49d353c8-f61b-4ff4-9788-f2b77f05b703</Copernic:GUID>
> <Copernic:Date>2005-03-22</Copernic:Date>
> <Copernic:Time>12:18:36</Copernic:Time> </Copernic:Header> 
> <Copernic:Body> <Copernic:KeyConcepts Count="11"> <Copernic:Concept 
> Rank="1" Score="0.980392">cookies</Copernic:Concept> <Copernic:Concept 
> Rank="2" Score="0.960513">overload</Copernic:Concept>
> <Copernic:Concept Rank="3" Score="0.938538">protect</Copernic:Concept>
> <Copernic:Concept Rank="4" Score="0.913971">knowing</Copernic:Concept>
> <Copernic:Concept Rank="5" Score="0.88612">surf</Copernic:Concept>
> <Copernic:Concept Rank="6" Score="0.853969">web 
> applications</Copernic:Concept> <Copernic:Concept Rank="7"
> Score="0.815941">turns cookies</Copernic:Concept> <Copernic:Concept 
> Rank="8" Score="0.7694">illusion</Copernic:Concept> <Copernic:Concept 
> Rank="9" Score="0.709397">cookies work</Copernic:Concept> 
> <Copernic:Concept Rank="10" Score="0.624828">choir</Copernic:Concept>
> <Copernic:Concept Rank="11"  
> Score="0.480257">preaching</Copernic:Concept> </Copernic:KeyConcepts> 
> <Copernic:KeySentences Count="3"> <Copernic:Sentence Rank="1">Other 
> means of creating the illusion of state have 
> issues.</Copernic:Sentence> <Copernic:Sentence Rank="2">If someone 
> turns cookies off, then they are entitled to not get the benefit of 
> web applications &amp; just surf pages.</Copernic:Sentence> 
> <Copernic:Sentence Rank="3">2. not trying to track the person, just to 
> have a way of knowing that his cookies are completely 
> off.</Copernic:Sentence> </Copernic:KeySentences> </Copernic:Body> 
> </Copernic:Summary>
>   
> The number of key concepts can vary.
>  
>  
> Thanks.
>
> Ted Wolfley
>  Database/Internet Programmer
>  The Ogden Group of Rochester
>  phone: (585) 321 1060 x23
> fax: (585) 321 0043
> [EMAIL PROTECTED]
>
> www.ogdengroup.com
>  
> ______________________________________________________________________
> _
> _
> 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


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

Reply via email to