![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: XML returned be getXmlData() is not well-formed -- How to work around? Topic Summary: Created On: 19-Jul-2006 17:24 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I am using the Perl API for ChangeSynergy. I wrote a small XSL stylesheet to display the XML data returned by method getXmlData() of class apiObjectVector. Now, I noticed that the < signs are not escaped, if these were used in text fields like a description. The browser quits processing the XML data with the error message that these XML data are not well-fromed. I tried to work around the problem in several ways, but without success: 1. Using the methods toShowXml(), toSubmitXml(), or toXML() returns only a small subset of the data returned by getXmlData(). Unfortunately, all important data are missing. 2. I iterated though the apiObjectVector using the method getDataObject( $index ) and manipulated the apiObjectData with method setValue( $data ). Retrieving the data again with getValue() proofs they were successfully modified, but getXmlData() still shows the original data!? I tried to use the method setIsModified() for apiObjectData and toSubmitXml() on apiObjectVector, but this returns an empty XML element for the apiObjectVector. It looks like I am missing something here which would be helpfull to understand how the ChangeSynergy Perl API works. Any help or small hints are highly appreciated.
Thanks in advance, Edited: 19-Jul-2006 at 17:29 by Michael Rinne |
|
![]() |
|
![]() |
|
I dont if you can use this but here is another example for using data from a query
# Now find the CR
$queryString = "service_report_no= '".
|
|
![]() |
|
![]() |
|
Hi Palle,
thanks for the answer. Unfortunately, the sample got crippled by this forum software. However, I found a work around for my problem. While iterating through the data objects I set them ALL to modified, then they all show up in the output of method toShowXml(). I attached the modified script. Thanks,Michael |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.