H
haigang0708
hello,everyone!
Maybe the title is a little confusing, but that's my problem.
Now my xml file has two parts. The first part stores data which might
be changed. The second part stores some "actions" which use the data
in first part as its parameters. I need to ensure that when I execute
"actions" of second part, it can always get the newest parameters. It
sounds like "pointer", right?
What I do now is storing the XPath expression of wanted data of first
part in second part where need it. So I can find right value of
parameters according to these paths. But in this way, many XPath
expressions are stored in xml file. I think this is a bad style.
Can anyone give me some advice about this?
Thanks.
Maybe the title is a little confusing, but that's my problem.
Now my xml file has two parts. The first part stores data which might
be changed. The second part stores some "actions" which use the data
in first part as its parameters. I need to ensure that when I execute
"actions" of second part, it can always get the newest parameters. It
sounds like "pointer", right?
What I do now is storing the XPath expression of wanted data of first
part in second part where need it. So I can find right value of
parameters according to these paths. But in this way, many XPath
expressions are stored in xml file. I think this is a bad style.
Can anyone give me some advice about this?
Thanks.