problems using the pphash "set"
"Asad Niazi" <[email protected]> Thu, 03 Jun 2004 18:38:52 +0500
| Newsgroups | gmane.comp.text.fmpp |
|---|---|
| Message-ID | <[email protected]> |
hello!
I needed your help regarding the pphash "set".
It is mentioned that we can change the values present in a writable Hash
with this command. Now it seems to work for the case when we want to change
the value of the first hierarchical element. Let me give u an example and
explain the problem. I have stored an element (which itself is a hash) from
XML file into a writable hash using this pphash "set".
<pp.set hash=Hash key="Syntax" value=node.syntax />
The structure of this "syntax" element (from node) in the XML file looks
like :
<syntax>
<typedef basetype="Enumeration">
<namednumber name="sonet" number="1"/>
<namednumber name="sdh" number="2"/>
</typedef>
</syntax>
As you can see that there are a few attributes present. Now I want to change
the values of these attributes. I have tried giving different values in the
"key" parameter e.g. key="Hash.Syntax.typdef.@basetype"
and giving the value that i want, in the value parameter, but it doesnt
work. When i print the value using the "pp.warning", it gives the original
values that were stored when i used the first set command to save the
node.syntax.
I am really getting desperate regarding this problem, i know there is a way
to change the values but i cannot seem to figure out how.
I would really appreciate if you can email me the solution to this problem.
Thanking in Anticipation.
Best Regards
Asadullah Khan Niazi
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504