Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert new TAG in XML
Message
From
29/10/2021 12:34:27
 
 
To
29/10/2021 11:33:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01682601
Message ID:
01682604
Views:
32
....
>
>m.xmlDoc.SetProperty("SelectionNamespaces", 'xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"')
>
>m.oNode = m.xmlDoc.SelectNodes("//cac:OrderReference")
>
>
>b) using an XPath function to retrieve element names, regardless of their namespace:
>
>m.oNode = m.xmlDoc.SelectNodes("//*[local-name() = 'OrderReference']")
>
>
>My advice? Always use the namespace selection.

Had similar SWAG on the reason for error, verified by inserting
? oNode.length
then I refreshed this thread, saving me from further effort as you had already forged ahead

But my advice would be slightly different:
Get away from XML and its intricacies, move to JSON for KISS reasons.
;-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform