XMLPath

5 Posts
2 Users
0 Likes
28 Views
f.boissie
(@f-boissiearcinfo-com)
Posts: 44
Member Moderator
Topic starter
 

Hi all

A custumer ask me to know if PcVue can read only one string of an XmlFile without import.
I think the issue is Scada basic verb "XMLPATH" or vba.

So, how do you use XMLPATH ? I read the online-help and example, it's not very clear... If someone can explain to me.

Else I can copy the file in a buffer of PcVue by FiletoBuf, and use CGET_buffer to hold a desired string. It's an easy issue and I want to underdstand XMLPATH.

 
Posted : 16/07/2013 3:13 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

XPath is really more easy to use by VBA!
Attach your file in this post and tell us the string you are searching

 
Posted : 16/07/2013 3:50 pm
f.boissie
(@f-boissiearcinfo-com)
Posts: 44
Member Moderator
Topic starter
 

Thx Nico.
Can you catch DOMAIN2 in the value of a Text of PcVue, please?

 
Posted : 16/07/2013 6:52 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

OK Check out the attached project.
Just ask the domain you want

 
Posted : 17/07/2013 9:53 am
f.boissie
(@f-boissiearcinfo-com)
Posts: 44
Member Moderator
Topic starter
 

Thx Nico, It works very well.
I happy to know

 
Posted : 18/07/2013 3:01 pm