Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pbdom.saveDocument() method failing

42 views
Skip to first unread message

raykausae

unread,
Oct 28, 2009, 9:37:44 PM10/28/09
to
I’m seeking assistance from those who may have used PBDOM
to generate XML documents. I’m having problems serializing
documents using the saveDocument() method. The method seems
to fail whenever I pass in a fully qualified document name
such as pbdom_doc.saveDocument( 'c:\xmlDocs\xsmadef.xml').
It seems to work when I issue a call using relative path,
such as, pbdom_doc.saveDocument('xsmadef.xml'). However, I
need to be able to use the fileOpen() dialog box to let
users nominate the location where to save the resulting XML
document. Could someone point me in the right direction
please? I’m using PB11.5.1 Build 4011 on Windows XP sp2.
See code snippet below.

Greatly appreciate your help.

Thanks
Ray KAUSAE

< code snippet >
string ls_path, &
ls_key[], &
ls_segment='FALSE', &
ls_message

if this.in_string.of_isEmpty(as_key[1]) then return -1
if this.in_string.of_isEmpty(as_message) then return -1

try
this.in_string.of_parseToArray(as_message,'|', ls_key)
this.is_class = ls_key[1]
this.of_getRootElement(as_message, ls_segment,ls_message)
this.of_getHeader(ls_key[5], ls_key[6], ls_message)
this.of_getBody(as_key, ls_key[5], ls_message)

if this.idom_document.saveDocument('xsmadef.xml') then
ls_segment = 'TRUE'
end if
// MessageBox(this.className()+'.generateXML()',ls_segment)

catch (PBDOM_EXCEPTION ldom_except)
as_message = ldom_except.getMessage()
return -1
end try

return 1
</ code snippet >

raykausae

unread,
Nov 4, 2009, 6:12:38 PM11/4/09
to
Resolved.
0 new messages