Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's in CURSORTOXML()?
Message
De
22/08/2002 18:53:11
 
 
À
22/08/2002 18:36:10
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00692321
Message ID:
00692723
Vues:
35
>>Unfortunately, this provides the same result.
>
>Could you post the resulting documents, one just after the ENDSCAN and the other as it is returned by STRCONV()?

Unfortunately not, the content in regards to that is presently confidential.

I am trying a direct DOM maniapulation. I thought for a while that avoiding creating an additional object as a wrapper for the DOM object could have made it to work as it seems the entire concept was working better. However, as I was about to say Bingo!, I just found that it is not technically working accurately as well.

The more content I keep adding to the XML string, the less it'll work. But, it's not specific to a specific content length. For example, one of my field is string equivalent of an integer. If I replace that with a GUID value, it'll fail. However, if I keep the string equivalent of an integer, and add more fields, it'll work. However, if I add too much fields, it won't work.

Presently, I have something like this:
* Create the object
loXML=CREATEOBJECT('MSXML.DOMDocument')

* Create the root
loNode=loXML.CreateElement('ContentItemList')
loXML.DocumentElement=loNode

SCAN

   * Add a record
   loRecord=loXML.CreateElement('ContentItem')
   loNode.AppendChild(loRecord)

   * Add the GUID
   loGUID=loXML.CreateElement('GUID')
   loRecord.AppendChild(loGUID)
   loGUID.NodeTypedValue=ALLTRIM(STR(Numero)) &&GetGUID()

   * Create the keywords
   loKeyword=loXML.CreateElement('Keywords')
   loRecord.AppendChild(loKeyword)

   ...
ENDSCAN

loXML.Save('d:\a.xml')
RETURN FILETOSTR('d:\a.xml')
So, as you can see, from the XML build level, I no longer have the STRCONV() as the XML DOM object Save() method will do it properly. However, the Web Service will still choke on the STRCONV() line.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform