RE: [WebDNA] XML Help
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103618
interpreted = N
texte = --_000_5B8D7CB1F315BB47B5361192C53DB547102701A5B5C8V2xdsumailu_Content-Type: text/plain; charset="iso-8859-1"Content-Transfer-Encoding: quoted-printableWhy is the write file commented out? Remove the [!][/!] around the write f=ile context.Marc________________________________From: Mark Bergkvist [mark@pcchoice.com]Sent: Friday, September 11, 2009 4:12 PMTo: talk@webdna.usSubject: RE: [WebDNA] XML HelpOk, here is what I have to write the response to a variable:[text]xml_result=3D[middle startafter=3D&endbefore==3D][tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&ssl=3DT][tcpsend skipheader=3DT][!][/!]POST /mustang HTTP/1.0[crlf][!][/!]Host: [host][crlf][!][/!]Content-Length: [CountChars][content][/CountChars][crlf][!][/!][crlf][!][/!][content][!][/!][/tcpsend][/tcpconnect][/middle][/text][!][writefile file=3Dxml_response][xml_result][/writefile][/!] [xmlparse var=3Dxml_var1][include file=3Dxml_response][/xmlparse] [xmlnodes ref=3Dxml_var1&path=3Dnamed:PNAResponse] [name]=3D[value]
[xmlnodes] - [name]=3D[value]
[/xmlnodes] [/xmlnodes]What I am seeing now in the browser is: Fatal Error at fileline: 1column: 1message: Invalid document structureAn unknown error occurred:XMLNodesContainer/Path Not Found:xml_var1Any idea if I am missing something here?MarkFrom: Kenneth Grome [mailto:kengrome@gmail.com]Sent: Friday, September 11, 2009 5:47 PMTo: talk@webdna.usSubject: Re: [WebDNA] XML Help> How would I save it directly into the XMLParse context?Put the tcpconnect inside the xmlparse context, or in the xmlparse tag itse=lf -- I forgot which but it's in the docs.On the other hand your code will be clearer and easier to understand if you= just save the tcpconnect response as a text variable then use that variabl=e in the xmlparse context.Sincerely,Ken Grome--_000_5B8D7CB1F315BB47B5361192C53DB547102701A5B5C8V2xdsumailu_Content-Type: text/html; charset="iso-8859-1"Content-Transfer-Encoding: quoted-printable
Why is =the write file commented out? Remove the [!][/!] around the wr=ite file context.
Marc
From: Mark Bergkvi=st [mark@pcchoice.com]
Sent: Friday, September 11, 2009 4:12 PM
To: talk@webdna.us
Subject: RE: [WebDNA] XML Help
Ok, here is what I have to write the respo=nse to a variable:
[text]xml_result=3D[middle startafter=3D&l=t;?xml version=3D"1.0"?>&endbefore=3D]
[tcpconnect host=3Dnewport.ingrammicro.com=&port=3D443&ssl=3DT]
[tcpsend skipheader=3DT][!]
[/!]POST /mustang HTTP/1.0[crlf][!]=
[/!]Host: [host][crlf][!]
[/!]Content-Length: [CountChars][content][=/CountChars][crlf][!]
[/!][crlf][!]
[/!][content][!]
[/!][/tcpsend]
[/tcpconnect][/middle][/text]
[!][writefile file=3Dxml_response][xml_res=ult][/writefile][/!]
= [xmlparse var=3Dxml_var1][include file=3Dxml_response][/xmlparse]=p>
= [xmlnodes ref=3Dxml_var1&path=3Dnamed:PNAResponse]
= [name]=3D[value]<br>
= &nb=sp;  =; [xmlnodes]
= &nb=sp; = &nb=sp; - [name]=3D[value]<br>
= &nb=sp; [/xml=nodes]
= [/xmlnodes]
What I am seeing now in the browser is:
Fatal Error at file
line: 1
column: 1
message: Invalid document structure
An unknown error occurred:
XMLNodes
Container/Path Not Found:
xml_var1
Any idea if I am missing something here?=span>
From: Kenneth Grome [mailto:kengrome@gmail.com]
Sent: Friday, September 11, 2009 5:47 PM
To: talk@webdna.us
Subject: Re: [WebDNA] XML Help
&g=t; How would I save it directly into the XMLParse context?
Pu=t the tcpconnect inside the xmlparse context, or in the xmlparse tag itself= -- I forgot which but it's in the docs.
On= the other hand your code will be clearer and easier to understand if you j=ust save the tcpconnect response as a text variable then use that variable =in the xmlparse context.
Si=ncerely,
Ken Grome
--_000_5B8D7CB1F315BB47B5361192C53DB547102701A5B5C8V2xdsumailu_--
Associated Messages, from the most recent to the oldest:
--_000_5B8D7CB1F315BB47B5361192C53DB547102701A5B5C8V2xdsumailu_Content-Type: text/plain; charset="iso-8859-1"Content-Transfer-Encoding: quoted-printableWhy is the write file commented out? Remove the
[!][/!] around the write f=ile context.Marc________________________________From: Mark Bergkvist [mark@pcchoice.com]Sent: Friday, September 11, 2009 4:12 PMTo: talk@webdna.usSubject: RE: [WebDNA] XML HelpOk, here is what I have to write the response to a variable:
[text]xml_result=3D[middle startafter=3D&endbefore==3D][tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&ssl=3DT][tcpsend skipheader=3DT]
[!][/!]POST /mustang HTTP/1.0[crlf]
[!][/!]Host: [host][crlf]
[!][/!]Content-Length:
[countchars][content][/CountChars][crlf]
[!][/!][crlf]
[!][/!][content]
[!][/!][/tcpsend][/tcpconnect][/middle][/text]
[!][writefile file=3Dxml_response][xml_result][/writefile][/!] [xmlparse var=3Dxml_var1][include file=3Dxml_response][/xmlparse] [xmlnodes ref=3Dxml_var1&path=3Dnamed:PNAResponse] [name]=3D[value]
[xmlnodes] - [name]=3D[value]
[/xmlnodes] [/xmlnodes]What I am seeing now in the browser is: Fatal Error at fileline: 1column: 1message: Invalid document structureAn unknown error occurred:XMLNodesContainer/Path Not Found:xml_var1Any idea if I am missing something here?MarkFrom: Kenneth Grome [mailto:kengrome@gmail.com]Sent: Friday, September 11, 2009 5:47 PMTo: talk@webdna.usSubject: Re: [WebDNA] XML Help> How would I save it directly into the XMLParse context?Put the tcpconnect inside the xmlparse context, or in the xmlparse tag itse=lf -- I forgot which but it's in the docs.On the other hand your code will be clearer and easier to understand if you= just save the tcpconnect response as a text variable then use that variabl=e in the xmlparse context.Sincerely,Ken Grome--_000_5B8D7CB1F315BB47B5361192C53DB547102701A5B5C8V2xdsumailu_Content-Type: text/html; charset="iso-8859-1"Content-Transfer-Encoding: quoted-printable
Why is =the write file commented out? Remove the
[!][/!] around the wr=ite file context.
Marc
From: Mark Bergkvi=st [mark@pcchoice.com]
Sent: Friday, September 11, 2009 4:12 PM
To: talk@webdna.us
Subject: RE: [WebDNA] XML Help
Ok, here is what I have to write the respo=nse to a variable:
[text]xml_result=3D[middle startafter=3D&l=t;?xml version=3D"1.0"?>&endbefore=3D]
[tcpconnect host=3Dnewport.ingrammicro.com=&port=3D443&ssl=3DT]
[tcpsend skipheader=3DT][!]
[/!]POST /mustang HTTP/1.0[crlf][!]=
[/!]Host: [host][crlf][!]
[/!]Content-Length: [countchars][content][=/CountChars][crlf][!]
[/!][crlf][!]
[/!][content][!]
[/!][/tcpsend]
[/tcpconnect][/middle][/text]
[!][writefile file=3Dxml_response][xml_res=ult][/writefile][/!]
= [xmlparse var=3Dxml_var1][include file=3Dxml_response][/xmlparse]=p>
= [xmlnodes ref=3Dxml_var1&path=3Dnamed:PNAResponse]
= [name]=3D[value]<br>
= &nb=sp;  =; [xmlnodes]
= &nb=sp; = &nb=sp; - [name]=3D[value]<br>
= &nb=sp; [/xml=nodes]
= [/xmlnodes]
What I am seeing now in the browser is:
Fatal Error at file
line: 1
column: 1
message: Invalid document structure
An unknown error occurred:
XMLNodes
Container/Path Not Found:
xml_var1
Any idea if I am missing something here?=span>
From: Kenneth Grome [mailto:kengrome@gmail.com]
Sent: Friday, September 11, 2009 5:47 PM
To: talk@webdna.us
Subject: Re: [WebDNA] XML Help
&g=t; How would I save it directly into the XMLParse context?
Pu=t the tcpconnect inside the xmlparse context, or in the xmlparse tag itself= -- I forgot which but it's in the docs.
On= the other hand your code will be clearer and easier to understand if you j=ust save the tcpconnect response as a text variable then use that variable =in the xmlparse context.
Si=ncerely,
Ken Grome
--_000_5B8D7CB1F315BB47B5361192C53DB547102701A5B5C8V2xdsumailu_--
Marc Thompson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Template not found error messages (1997)
WebCat2b12 - nesting [tags] (1997)
RE: Emailer Set Up (1997)
Almost a there but..bye bye NetCloak (1997)
Bug or syntax error on my part? (1997)
SMSI -- a [notfound] context? (2002)
I'm new be kind (1997)
[cart] (1998)
Calendar (1997)
syntax question, not in online refernce (1997)
WebCatalog vs. Cold Fusion (1998)
Protect (1997)
E-mailer application times out (1998)
[ShowNext] (1997)
Limiting user access to .tmpl files (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Intranet Edition (2004)
HTML Editors (1997)
Searching for all records (1998)
Server capacity (2003)