RE: [WebDNA] XML Help

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103621
interpreted = N
texte = --_000_1F600E66EAA5A9408FF9A8ED434781A120101B4148VMBX101ihoste_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ok, here is where I am at now. I can put [text]xml_result[text] in the document and it will display the re= turned xml in my browser. So I assume that I am getting all the information= ok. However when I use the following: [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 file line: 1 column: 1 message: Invalid document structure An unknown error occurred: XMLNodes Container/Path Not Found: xml_var1 I think there is a problem with the way the writefile is writing the file. = This is because if I copy and paste the [text]xml_result[text] I used above= and physically save it to a test.xml file I get the same error message. T= hen I saw that the message was referring to line: 1 column:1 and decided to= delete the two leading spaces in the text.xml file and then it displayed t= he same error message, but referring to line:2 column:1. So I deleted the d= eleted the leading - and space, and now it displays correctly. So if this i= s the reason for getting the error using [writefile file=3Dxml_response][xm= l_result][/writefile] how do I fix it? Mark From: Marc Thompson [mailto:mthompson@media.utah.edu] Sent: Friday, September 11, 2009 10:51 PM To: talk@webdna.us Subject: RE: [WebDNA] XML Help Why 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 PM To: talk@webdna.us Subject: RE: [WebDNA] XML Help Ok, 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 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? Mark From: Kenneth Grome [mailto:kengrome@gmail.com] Sent: Friday, September 11, 2009 5:47 PM To: talk@webdna.us Subject: 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_1F600E66EAA5A9408FF9A8ED434781A120101B4148VMBX101ihoste_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Ok, here is where I am at now.

 

I can put [text]xml_result[text] = in the document and it will display the returned xml in my browser. So I assume th= at I am getting all the information ok.

 

However when I use the following:

 

[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]<br>

           &nbs= p;            &= nbsp;         [xmlnodes]

           &nbs= p;            &= nbsp;           &nbs= p;           - [name]=3D[value]<br>

           &nbs= p;            &= nbsp;       [/xmlnodes]

        [/xmlnodes]

 

What I am seeing now in the browser is:


&n= bsp;Fatal Error at file
line: 1
column: 1
message: Invalid document structure
An unknown error occurred:
XMLNodes
Container/Path Not Found:
xml_var1

 

I think there is a problem with the way the writefile is wri= ting the file. This is because if I copy and paste the [text]xml_result[text]= = I used above and physically save it to a test.xml file I get the same error message.  Then I saw that the message was referring to line: 1 column:= 1 and decided to delete the two leading spaces in the text.xml file and then = it displayed the same error message, but referring to line:2 column:1. So I deleted the deleted the leading – and space, and now it displays correctly. So if this is the reason for getting the error using [writefile file=3Dxml_response][xml_result][/writefile] how do I fix it?

 

Mark

 

From: Marc Thompson [mailto:mthompson@media.utah.edu]
Sent: Friday, September 11, 2009 10:51 PM
To: talk@webdna.us
Subject: RE: [WebDNA] XML Help

 

Why is the write file commented out?  Remove the [!][/!] around the write file context.

 

Marc


From: Mark Bergkvist [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 response to a variable:=

 

[text]xml_result=3D[middle startafter=3D<?xml version=3D"1.0"?>&endbefore=3D]

[tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&am= p;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]<br>

          =             &nb= sp;           [xmlnodes]

          =             &nb= sp;            =              - [name]=3D[value]<br>

 

          =             &nb= sp;         [/xmlnodes]

        [/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?

 

Mark

 

From: Kenneth Grome [mailto:kengrome@gmail.com]
Sent: Friday, September 11, 2009 5:47 PM
To: talk@webdna.us
Subject: 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 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 ju= st save the tcpconnect response as a text variable then use that variable in t= he xmlparse context.

 

Sincerely,
Ken Grome

 

--_000_1F600E66EAA5A9408FF9A8ED434781A120101B4148VMBX101ihoste_-- Associated Messages, from the most recent to the oldest:

    
  1. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  2. Re: [WebDNA] XML Help (Christer Olsson 2009)
  3. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  4. Re: [WebDNA] XML Help (Christer Olsson 2009)
  5. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  6. Re: [WebDNA] XML Help (Christer Olsson 2009)
  7. RE: [WebDNA] XML Help (Marc Thompson 2009)
  8. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  9. Re: [WebDNA] XML Help (Kenneth Grome 2009)
  10. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  11. Re: [WebDNA] XML Help (Marc Thompson 2009)
  12. Re: [WebDNA] XML Help (Kenneth Grome 2009)
  13. Re: [WebDNA] XML Help (Marc Thompson 2009)
  14. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  15. Re: [WebDNA] XML Help (Marc Thompson 2009)
  16. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  17. Re: [WebDNA] XML Help (Donovan Brooke 2009)
  18. Re: [WebDNA] XML Help (Christer Olsson 2009)
  19. Re: [WebDNA] XML Help (Govinda 2009)
  20. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  21. Re: [WebDNA] XML Help (Govinda 2009)
  22. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  23. Re: [WebDNA] XML Help (Govinda 2009)
  24. Re: [WebDNA] XML Help please (Colin Sidwell 2009)
  25. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  26. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  27. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  28. RE: [WebDNA] XML Help please ("Michael A. DeLorenzo" 2009)
  29. RE: [WebDNA] XML Help please ("Michael A. DeLorenzo" 2009)
  30. Re: [WebDNA] XML Help please (Colin Sidwell 2009)
  31. Re: [WebDNA] XML Help please (Colin Sidwell 2009)
  32. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  33. Re: [WebDNA] XML Help please (Toby Cox 2009)
--_000_1F600E66EAA5A9408FF9A8ED434781A120101B4148VMBX101ihoste_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ok, here is where I am at now. I can put [text]xml_result[text] in the document and it will display the re= turned xml in my browser. So I assume that I am getting all the information= ok. However when I use the following: [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 file line: 1 column: 1 message: Invalid document structure An unknown error occurred: XMLNodes Container/Path Not Found: xml_var1 I think there is a problem with the way the writefile is writing the file. = This is because if I copy and paste the [text]xml_result[text] I used above= and physically save it to a test.xml file I get the same error message. T= hen I saw that the message was referring to line: 1 column:1 and decided to= delete the two leading spaces in the text.xml file and then it displayed t= he same error message, but referring to line:2 column:1. So I deleted the d= eleted the leading - and space, and now it displays correctly. So if this i= s the reason for getting the error using [writefile file=3Dxml_response][xm= l_result][/writefile] how do I fix it? Mark From: Marc Thompson [mailto:mthompson@media.utah.edu] Sent: Friday, September 11, 2009 10:51 PM To: talk@webdna.us Subject: RE: [WebDNA] XML Help Why 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 PM To: talk@webdna.us Subject: RE: [WebDNA] XML Help Ok, 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 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? Mark From: Kenneth Grome [mailto:kengrome@gmail.com] Sent: Friday, September 11, 2009 5:47 PM To: talk@webdna.us Subject: 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_1F600E66EAA5A9408FF9A8ED434781A120101B4148VMBX101ihoste_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Ok, here is where I am at now.

 

I can put [text]xml_result[text] = in the document and it will display the returned xml in my browser. So I assume th= at I am getting all the information ok.

 

However when I use the following:

 

[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]<br>

           &nbs= p;            &= nbsp;         [xmlnodes]

           &nbs= p;            &= nbsp;           &nbs= p;           - [name]=3D[value]<br>

           &nbs= p;            &= nbsp;       [/xmlnodes]

        [/xmlnodes]

 

What I am seeing now in the browser is:


&n= bsp;Fatal Error at file
line: 1
column: 1
message: Invalid document structure
An unknown error occurred:
XMLNodes
Container/Path Not Found:
xml_var1

 

I think there is a problem with the way the writefile is wri= ting the file. This is because if I copy and paste the [text]xml_result[text]= = I used above and physically save it to a test.xml file I get the same error message.  Then I saw that the message was referring to line: 1 column:= 1 and decided to delete the two leading spaces in the text.xml file and then = it displayed the same error message, but referring to line:2 column:1. So I deleted the deleted the leading – and space, and now it displays correctly. So if this is the reason for getting the error using [writefile file=3Dxml_response][xml_result][/writefile] how do I fix it?

 

Mark

 

From: Marc Thompson [mailto:mthompson@media.utah.edu]
Sent: Friday, September 11, 2009 10:51 PM
To: talk@webdna.us
Subject: RE: [WebDNA] XML Help

 

Why is the write file commented out?  Remove the [!][/!] around the write file context.

 

Marc


From: Mark Bergkvist [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 response to a variable:=

 

[text]xml_result=3D[middle startafter=3D<?xml version=3D"1.0"?>&endbefore=3D]

[tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&am= p;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]<br>

          =             &nb= sp;           [xmlnodes]

          =             &nb= sp;            =              - [name]=3D[value]<br>

 

          =             &nb= sp;         [/xmlnodes]

        [/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?

 

Mark

 

From: Kenneth Grome [mailto:kengrome@gmail.com]
Sent: Friday, September 11, 2009 5:47 PM
To: talk@webdna.us
Subject: 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 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 ju= st save the tcpconnect response as a text variable then use that variable in t= he xmlparse context.

 

Sincerely,
Ken Grome

 

--_000_1F600E66EAA5A9408FF9A8ED434781A120101B4148VMBX101ihoste_-- Mark Bergkvist

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:

no global [username] or [password] displayed ... (1997) [shippingtotal] & Formulas.db prob (2003) Log-in Scheme (2003) Setting up shop (1997) passing the variable (1999) [WebDNA] Convertchars Weirdness (2014) WebDNA maxing out processor / Strange intermittent WebDNA (2008) Items XX to XX shown (1997) Can you specify encoding=multiline? (2000) More questions about serial number dishing (1997) Comments in db? (1997) hidden databases (2000) Up and running ... at last !! (1997) 'does not contain' operator needed ... (1997) [LOOKUP] (1997) WC2b15 File Corruption (1997) WCS Newbie question (1997) Almost Real Time (2002) Tab Charactor (1997) Price written to db as scientific notation??? (1999)