JScript & Helper to extract xml value

Progressing …


Continuing the discussion from :v: V5 Feature Compilation:

In the exemple of emre it is clear …
However in my xml file, I have a lot of:

<ext:xxxxx ...

and using the double-dot : is obviously not working, nor with the ’ caracter :grinning:

 var o = xml.Parse(f);
  
 var r = o.Invoice.'ext:UBLExtensions'.'ext:UBLExtension'.'ext:ExtensionContent'.'ds:Signature'.'ds:SignedInfo'.'ds:Reference'.'ds:DigestValue'.Value;

so …

begining of xml file is:

It’s a bit more confusing than:

var carColor = car.color.Value

I try without success:

o.Invoice.'ext:UBLExtensions'.'ext:UBLExtension'.'ext:ExtensionContent'.'ds:Signature'.'ds:SignedInfo'.'ds:Reference'.'ds:DigestValue'.Value;

o.Invoice.ext:UBLExtensions.ext:UBLExtension.ext:ExtensionContent.ds:Signature.ds:SignedInfo.ds:Reference.ds:DigestValue.Value;

How do I deal with that?


Upd: Not working neighter

o.Invoice.UBLExtensions.UBLExtension.ExtensionContent.Signature.SignedInfo.Reference.DigestValue.Value;

o.Invoice.ext.Extensions.UBLExtension.ExtensionContent.ds.Signature.SignedInfo.Reference.DigestValue.Value;

o.Invoice.Extensions.UBLExtension.ExtensionContent.Signature.SignedInfo.Reference.DigestValue.Value;

See when you don’t know what you are doing, it can take a lot of time …