Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WwXML limitation?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00688950
Message ID:
00688983
Vues:
25
Luc,

Have you asked this question over on Rick Strahl's website?

>1- I want to able to create this below with wwXML.
>
-<Job Edge="N">
   <Account>3302</Account>
 </Job>
AFAIK wwXML isn't capable of mixing attribute and element values. Your Job tag has Edge as an attribute value and Account as an element value.

>
>2- AND when having an array of object (multiple job for one PO), wwXML create a for listing all the jobs
>
- <job>
  -<job_item>
     <Account>3302</Account>
     <Patient>Monica</Patient>
   </job_item>
  -<job_item>
     <Account>3303</Account>
     <Patient>Manon</Patient>
   </job_item>
  </job>
>
>Should be
>
- <job>
     <Account>3302</Account>
     <Patient>Monica</Patient>
  </job>
- <job>
     <Account>3303</Account>
     <Patient>Manon</Patient>
  </job>
Once again, the - characters that are appearing in the XML you are posting invalidate the document.

Do deal with an array of objects you'll have to lots of little calls to methods of wwXML and string together the results into the document you are trying to construct. You may want to consider writing some methods to extend wwXML to handle your requirement.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform